﻿<!doctype html>

<html>

<head>
    <title>Antimatter Dimensions NG-4 Respecced</title>
    <link rel="icon" type="image/png" href="icon.png">
    <meta name="Antimatter Dimensions" content="A game about huge numbers and watching them go up." charset="utf-8"/>
    <h1 id="hiddenheader" style="display: none">Antimatter Dimensions</h1>
    <script type="text/javascript" src="javascripts/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="javascripts/notify.js"></script>
    <link rel="stylesheet" type="text/css" href="stylesheets/styles.css?3">
    <link rel="stylesheet" type="text/css" href="stylesheets/interreality_and_timeless.css">
</head>
<img id="loading" src="images/Loading.png">
<div id="snow" style="display: none; "></div>
<body id="body" style="height: 95vh; ">
    <div id="container" class="container" style="color:#4F5957; font-family: Typewriter; text-align:center; font-size: 11px; display:none">
        <div id='game'>
            <div id='news'>.</div>
        </div>
        <div style="position: relative"><div class="IP" id="infinityPoints2"></div></div>
        <div style="position: relative"><div class="EP" id="eternityPoints2"></div></div>
        <div style="position: relative"><div class="EP" id="galaxyPoints2"></div>
			<span id="sacpos" class="eterpos"><button id="sacrificebtn" class="galaxybtn"></button></span>
		</div>
		
        <div style="position: relative"><button id="postInfinityButton" class="postinfcrunch infpos">Big Crunch for x Infinity Points</button></div>
        <div style="position: relative"><button id="interrealityresetbtn" class="interreality ghostifyPos" onclick="showTab('interrealitytab')">A new rift has formed... Enter the Interreality.</button></div>
		<div id='quantumBlock' style='height:120px'></div>
        <div id="matter"></div>
        <div id="dilationEffect1"></div>
        <div id="chall13Mult"></div>
        <div>
            <p>You have <span id="coinAmount" style="font-size:25px; color: black">0</span> antimatter.</p>
        </div>

        <div style="position: relative">
            <button id="newDimensionButton" class="newdim" onclick="newDimension()">Get x antimatter to unlock a new Dimension.</button>
            <button id="eternitybtn" class="eternitybtn" onclick="eternity()">Other times await.. I need to become Eternal</button>
        </div>
        <div id="coinsPerSec">You are getting 0 antimatter per second.</div>

        <tr id="tickSpeedRow" style="visibility: hidden">
            <div id="tickLabel" style="visibility: hidden">Make the game 10% faster.</div>
            <button id="tickSpeed" style="color:black; visibility: hidden; height: 25px;width: 170px; font-size: 12px" class="storebtn">Cost: 1000</button>
            <button id="tickSpeedMax" onclick="buyMaxTickSpeed()" style="color:black; visibility: hidden; height: 25px; font-size: 12px" class="storebtn">Buy Max</button>
            <div id="tickSpeedAmount" style="visibility: hidden">Tickspeed: 1000</div>
            <div id="tickSpeedPurchases" style="visibility: hidden">You have 1000 tickspeed purchases left.</div>
        </tr>
        <p></p>
        <div style="position:absolute; left: 0; right: 0; margin-left: auto; margin-right: auto; width: 360px; top: 19px">
            <button id="bigcrunch" style="font-family: Typewriter; font-size: 50px; width: 360px; height: 100px;" class="tabbtn">Big Crunch</button>
        </div>
        <div>
            <button id="dimensionsbtn" style="font-family: Typewriter; font-size: 20px" class="tabbtn">Dimensions</button>
            <button id="optionsbtn" style="font-family: Typewriter; font-size: 20px" class="tabbtn">Options</button>
            <button id="statisticsbtn" style="font-family: Typewriter; font-size: 20px" class="tabbtn">Statistics</button>
            <button id="achievementsbtn" style="font-family: Typewriter; font-size: 20px" class="tabbtn">Achievements</button>
            <button id="challengesbtn" style="font-family: Typewriter; font-size: 20px" class="tabbtn">Challenges</button>
	          <button id="galaxybtn" style="font-family: Typewriter; font-size: 20px" class="galaxybtn">Galaxy</button>
            <button id="infinitybtn" style="font-family: Typewriter; font-size: 20px; display: none" class="infinitybtn">Infinity</button>
            <button id="eternitystorebtn" style="font-family: Typewriter; font-size: 20px; display: none" class="eternitytabbtn">Eternity</button>
            <button id="interrealitybtn" style="font-family: Typewriter; font-size: 20px; display: none" class="interreality">Interreality</button>
            <button id="shopbtn" style="font-family: Typewriter; font-size: 20px" class="tabbtn">Shop</button>
        </div>
        <div id="emptiness" class="tab" style="font-size: 150%">
            <br> The world has collapsed on itself due to excess of antimatter.
            <br>
            <br>
        </div>
        <div id="interrealitytab" class="tab" style="font-size: 200%">
            <br> Congratulations! You have beat NG-4 Respecced v2.9: Before the Interreality!
			<br> Interreality is coming soon...
			<br> <span style="font-size:75%">(After Interreality update in NG-2)</span>
			<br>
			<br>
			<br>
        </div>
        <div id="shop" class="tab" style="font-size: 15px" >
            <div align="center">
                <br>
                <span id="kongip"> Double your IP gain from all sources. Forever. </span><br>
                <button class="greedbtn" onclick="purchaseIP()">40 Kreds</button>
                <br><br><br>
                <span id="kongep"> Double your EP gain from all sources. Forever. </span><br>
                <button class="greedbtn" onclick="purchaseEP()">50 Kreds</button>
                <br><br><br>
                <span id="kongdim"> Double all your dimension multipliers (dimensions 1-8). Forever. </span><br>
                <button class="greedbtn" onclick="purchaseDimMult()">30 Kreds</button>
                <br><br><br>
                <span id="kongalldim"> Double ALL the dimension multipliers (Normal, Infinity and Time). Forever. </span><br>
                <button class="greedbtn" onclick="purchaseAllDimMult()">60 Kreds</button>
                <br><br><br>
                <span>Get 6 hours worth of offline production. (Doesn't work for autobuyers)</span><br>
                <button class="greedbtn" onclick="purchaseTimeSkip()">10 Kreds</button>
                <br><br><br>
                <span style="font-size: 12px"><b>Disclaimer: These are not required to progress in the game, they are just to help and support the developer.</b></span>
            </div>
        </div>
        <div id="eternitystore" class="tab" style="font-size: 15px; margin: 0 auto; display: none" align="center">
            <table class="table" align="center" style="margin: auto">
                <tr>
                    <td><button class="secondarytabbtn" onclick="showEternityTab('timestudies')">Time studies</button></td>
                    <td><button class="secondarytabbtn" onclick="showEternityTab('eternityupgrades')">Eternity upgrades</button></td>
                    <td><button class="secondarytabbtn" onclick="showEternityTab('milestones')">Eternity milestones</button></td>
                    <td><button class="secondarytabbtn" onclick="showEternityTab('timeless')" id="timelessTabbtn" style="display:none;">Timeless</button></td>
                    <td><button class="secondarytabbtn" onclick="showEternityTab('dilation')" id="dilationTabbtn" style="display:none;">Time dilation</button></td>
                </tr>
            </table>
            <div class="eternitytab" id="timestudies" style="font-size: 15px">
                <div style="display: none;"><textarea id="treeExportOutput" style="color:black; width: 200px; height: 55px;"></textarea></div>
                <canvas id="studyTreeCanvas"></canvas>
                <tr>
                    <td><button class="storebtn" onclick="exportStudyTree()" style="width:150px; height: 40px; font-size: 10px; margin: auto">Export tree</button><td>
                    <td><button class="storebtn" onclick="respecToggle()" id="respec" style="width:150px; height: 40px; font-size: 10px; margin: auto">Respec time studies on next Eternity</button><td>
                    <td><button class="storebtn" onclick="importStudyTree()" style="width:150px; height: 40px; font-size: 10px; margin: auto">Import tree</button><td>
                </tr>
				<table class="table" id="forceRespecStudy">
                <tr>
                    <td><button class="storebtn" onclick="forceRespecStudy()" id="forceRespecStudy1" style="width:150px; height: 40px; font-size: 10px; margin: auto">Respec time studies and restart this eternity</button><td>
                </tr>
				</table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudylocked" id="23" onclick="buyTimeStudy(23, 0)">Tickspeed affects Time Dimensions. Cost: 0 Time Theorems</button></td>
                        <td><button class="timestudylocked" id="11" onclick="buyTimeStudy(11, 1)">Multiplier to 1st Time Dimension based on tickspeed<span id="11desc">Currently: 1x</span>Cost: 1 Time Theorem</button></td>
                        <td><button class="timestudybought" id="secretstudy" style="opacity: 0; cursor: pointer; transition-duration: 2s;">Unlock a secret achievement<span>Cost: 0 Time Theorems</button></td>
                    </tr>
                </table>
                <br>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudy" id="21" onclick="buyTimeStudy(21, 3)">Replicanti multiplier formula is better<span id="21desc">Req: Unlock Replicanti or Eternitied at least once</span>Cost: 3 Time Theorems</button></td>
                        <td><button class="timestudy" id="22" onclick="buyTimeStudy(22, 2)">Base replicanti interval limit 50ms -> 1ms<span>Req:  Eternitied at least once</span>Cost: 2 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudy" id="33" onclick="buyTimeStudy(33, 2)">You keep half of your replicanti galaxies on infinity<span>Req:  Eternitied at least once</span>Cost: 2 Time Theorems</button></td>
                        <td><button class="timestudy" id="31" onclick="buyTimeStudy(31, 3)">Powers up infinity upgrades that are based on your infinitied stat (to the power of 4)<span>Cost: 3 Time Theorems</button></td>
                        <td><button class="timestudy" id="32" onclick="buyTimeStudy(32, 2)"><span id="32desc">You gain x1 more infinitied stat (based on dimension boosts)</span>Cost: 2 Time Theorems</button></td>
						
                        <td style="opacity: 0;"><button class="timestudylocked"></button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td style="opacity: 0;"><button class="timestudylocked"></button></td>
                        <td><button class="timestudy" id="41" onclick="buyTimeStudy(41, 4)">Boost IP gain based on normal and replicated galaxies.<span id="41desc"></span>Cost: 4 Time Theorems</button></td>
                        <td><button class="timestudy" id="42" onclick="buyTimeStudy(42, 6)">Galaxy requirement base increase is reduced by 6.<span>Cost: 6 Time Theorems</button></td>
			<td><button class="timestudy" id="43" onclick="buyTimeStudy(43, 15)">Gain 1% of infinitied gain per second.<span>Cost: 15 Time Theorems</button></td>
                    </tr>
                </table>
                <br>
                <table class="table" id="studytable">
                    <tr>
                        <td style="opacity: 0;"><button class="timestudylocked"></button></td>
                        <td style="opacity: 0;"><button class="timestudylocked"></button></td>
                        <td><button class="timestudy" id="51" onclick="buyTimeStudy(51, 3)"><span id=51desc>You gain 1e15 times more IP</span>Cost: 3 Time Theorems</button></td>
                        <td><button class="eternitychallengestudy" id="ec5unl">Eternity Challenge 5<span>Requirement: 200 galaxies<span>Cost: 100 Time Theorems</button></td>
                        <td><button class="timestudy" id="53" onclick="buyTimeStudy(53, 15)">Gain <span id="53desc" style="display:inline;"></span>% of infinitied gain per second as banked infinities.<span>Cost: 15 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td style="opacity: 0;"><button class="timestudylocked"></button></td>
                        <td><button class="timestudy" id="61" onclick="buyTimeStudy(61, 3)">You gain 10x more EP (applied post-dilation)<span>Req:  Eternitied at least once</span>Cost: 3 Time Theorems</button></td>
                        <td><button class="timestudy" id="62" onclick="buyTimeStudy(62, 3)">You gain replicanti 3 times faster if you have TS192. If you don't have TS192, replicanti limit ^1.5<span>Cost: 3 Time Theorems</button></td>
                    </tr>
                </table>
                <br>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudy normaldimstudy" id="71" onclick="buyTimeStudy(71, 4)">Sacrifice affects all other normal dimensions with reduced effect<span id="71desc">Currently: 1x</span>Cost: 4 Time Theorems</button></td>
                        <td><button class="timestudy infdimstudy" id="72" onclick="buyTimeStudy(72, 6)">Sacrifice affects 4th Infinity Dimension with greatly reduced effect<span id="72desc">Currently: 1x</span>Cost: 6 Time Theorems</button></td>
                        <td><button class="timestudy timedimstudy" id="73" onclick="buyTimeStudy(73, 5)">Sacrifice affects 3rd Time Dimension with greatly reduced effect<span id="73desc">Currently: 1x</span>Cost: 5 Time Theorems</button></td>
                    </tr>
                    <tr>
                        <td><button class="timestudy normaldimstudy" id="81" onclick="buyTimeStudy(81, 4)">Dimension boost power is raised to a power<span id="81desc">Currently: 1x</span><span>Cost: 4 Time Theorems</button></td>
                        <td><button class="timestudy infdimstudy" id="82" onclick="buyTimeStudy(82, 6)">Dimension boosts affect Infinity Dimensions<span id="82desc">Currently: 1x</span>Cost: 6 Time Theorems</button></td>
                        <td><button class="timestudy timedimstudy" id="83" onclick="buyTimeStudy(83, 5)">Tick upgrade gained from Time Dimensions boost Dimension boosts <span id="83desc2">(applied after powerer)</span><span id="83desc">Currently: 1x</span>Cost: 5 Time Theorems</button></td>
                    </tr>
                    <tr>
                        <td><button class="timestudy normaldimstudy" id="91" onclick="buyTimeStudy(91, 4)">Normal dimensions gain a multiplier based on time spent this eternity<span id="91desc">Currently: 1x</span>Cost: 4 Time Theorems</button></td>
                        <td><button class="timestudy infdimstudy" id="92" onclick="buyTimeStudy(92, 5)">Infinity dimensions gain a multiplier based on fastest eternity time<span id="92desc">Currently: 1x</span>Cost: 5 Time Theorems</button></td>
                        <td><button class="timestudy timedimstudy" id="93" onclick="buyTimeStudy(93, 7)">Time dimensions gain a multiplier based on tick upgrades gained<span id="93desc">Currently: 1x</span>Cost: 7 Time Theorems</button></td>
                    </tr>
                    <tr>
                        <td><button class="timestudy normaldimstudy" id="101" onclick="buyTimeStudy(101, 4)">Normal dimensions gain a multiplier based on replicantis.<span id="101desc">Currently: 1x</span>Cost: 4 Time Theorems</button></td>
                        <td><button class="timestudy infdimstudy" id="102" onclick="buyTimeStudy(102, 6)">Replicanti galaxies power replicanti multiplier<span id="102desc">Currently: 1x</span>Cost: 6 Time Theorems</button></td>
                        <td><button class="timestudy timedimstudy" id="103" onclick="buyTimeStudy(103, 6)">Time dimensions gain a multiplier based on replicanti galaxy amount<span id="103desc">Currently: 1x</span>Cost: 6 Time Theorems</p></button></td>
                    </tr>
                </table>
                <br>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="eternitychallengestudy" id="ec7unl">Eternity Challenge 7<span>Requirement: 1e550,000 antimatter<span>Cost: 115 Time Theorems</button></td>
                        <td><button class="timestudy" id="111" onclick="buyTimeStudy(111, 12)">Make the IP formula better<span>Cost: 12 Time Theorems</button></td>
                        <td style="opacity: 0;"><button class="timestudylocked"></button></td>
                    </tr>
                </table>
                <br>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudy activestudy" id="121" onclick="buyTimeStudy(121, 9)">The worse your average EP/min is, the more EP you get (applied post-dilation)<span id="121desc">Currently: 1x</span>Cost: 9 Time Theorems</button></td>
                        <td><button class="timestudy passivestudy" id="122" onclick="buyTimeStudy(122, 9)">You gain 35x more EP (applied post-dilation)<span>Cost: 9 Time Theorems</button></td>
                        <td><button class="timestudy idlestudy" id="123" onclick="buyTimeStudy(123, 9)">You gain more EP based on time spent this eternity (applied post-dilation)<span id="123desc">Currently: 1x</span>Cost: 9 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="eternitychallengestudy" id="ec6unl">Eternity Challenge 6<span>Requirement: 40 replicanti galaxies<span>Cost: 100 Time Theorems</button></td>
                        <td><button class="timestudy activestudy" id="131" onclick="buyTimeStudy(131, 5)">Automatic replicanti galaxies are disabled, but you can get 50% more<span>Cost: 5 Time Theorems</button></td>
                        <td><button class="timestudy passivestudy" id="132" onclick="buyTimeStudy(132, 5)">Replicanti galaxies are 40% more effective<span>Cost: 5 Time Theorems</button></td>
                        <td><button class="timestudy idlestudy" id="133" onclick="buyTimeStudy(133, 5)">Replicanti are 10x slower until infinity, but their galaxies are 50% stronger<span>Cost: 5 Time Theorems</button></td>
                        <td><button class="eternitychallengestudy" id="ec8unl">Eternity Challenge 8<span>Cost: 100 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudy activestudy" id="141" onclick="buyTimeStudy(141, 4)">Multiplier to IP, decaying over this infinity<span id="141desc">Currently 1x</span>Cost: 4 Time Theorems</button></td>
                        <td><button class="timestudy passivestudy" id="142" onclick="buyTimeStudy(142, 4)"><span id="142desc">You gain 1e25x more IP</span>Cost: 4 Time Theorems</button></td>
                        <td><button class="timestudy idlestudy" id="143" onclick="buyTimeStudy(143, 4)">Multiplier to IP, increasing over this infinity<span id="143desc">Currently 1x</span>Cost: 4 Time Theorems</button></td>
                    </tr>
                </table>
                <br>
                <table class="table" id="studytable">
                    <tr>
                        <td style="opacity: 0;"><button class="timestudylocked"></button></td>
                        <td><button class="eternitychallengestudy" id="ec9unl">Eternity Challenge 9<span>Requirement: 1e6000 infinity power<span>Cost: 100 Time Theorems</button></td>
                        <td><button class="timestudy" id="151" onclick="buyTimeStudy(151, 8)"><span id="151desc">1e4x multiplier on all Time Dimensions</span>Cost: 8 Time Theorems</button></td>
                        <td style="opacity: 0;"><button class="timestudylocked"></button></td>
                        <td><button class="eternitychallengestudy" id="ec4unl">Eternity Challenge 4<span>Requirement: 100,000,000 infinities<span>Cost: 85 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudy" id="161" onclick="buyTimeStudy(161, 7)"><span id="161desc">1e616x multiplier on all normal dimensions</span>Cost: 7 Time Theorems</button></td>
                        <td><button class="timestudy" id="162" onclick="buyTimeStudy(162, 7)"><span id="162desc">1e11x multiplier on all Infinity Dimensions</span>Cost: 7 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudy" id="171" onclick="buyTimeStudy(171, 15)">Time shard requirement for the next tickspeed upgrade goes up slower<span>Req: Buy a certain Timeless upgrade</span>Cost: 15 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="eternitychallengestudy" id="ec1unl">Eternity Challenge 1<span>Requirement: 25,000 Eternities<span>Cost: 20 Time Theorems</button></td>
                        <td><button class="eternitychallengestudy" id="ec2unl" style="font-size: 10px;">Eternity Challenge 2<span>Requirement: 1,300 Time upgrades gained from time dimensions<span>Cost: 25 Time Theorems</button></td>
                        <td><button class="eternitychallengestudy" id="ec3unl">Eternity Challenge 3<span>Requirement: 30 dicks in your ass<span>Cost: 30 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudy" id="181" onclick="buyTimeStudy(181, 0)">You gain 1% of your GP and IP gained on crunch each second.<span>Cost: 0 Time Theorems</button></td>
                    </tr>
                    <tr>
                        <td><button class="eternitychallengestudy" id="ec10unl">Eternity Challenge 10<span>Requirement: 1e100 EP<span>Cost: 200 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudy" id="191" onclick="buyTimeStudy(191, 400)">Boost TS53 based on bought studies and eternities<span id="191desc">Currently: 1x</span><span>Cost: 400 Time Theorems</button></td>
                        <td><button class="timestudy" id="192" onclick="buyTimeStudy(192, 660)" style="font-size: 10px;"><span id="192desc">You can get beyond 1.8e308 replicantis, but the interval is increased the more you have</span>Cost: 660 Time Theorems</button></td>
                        <td><button class="timestudy" id="193" onclick="buyTimeStudy(193, 300)">Normal dimension boost based on eternities<span id="193desc">Currently: 1x</span>Cost: 300 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudy" id="201" onclick="buyTimeStudy(201, 900)">Pick another path from the first split<span>Cost: 900 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudy" id="211" onclick="buyTimeStudy(211, 120)">Dimensional boost requirement scaling is reduced by 1<span>Cost: 120 Time Theorems</button></td>
                        <td><button class="timestudy" id="212" onclick="buyTimeStudy(212, 150)">Galaxies are more effective based on your timeshards<span id="212desc">Currently: 1x</span>Cost: 150 Time Theorems</button></td>
                        <td><button class="timestudy" id="213" onclick="buyTimeStudy(213, 200)">You gain replicanti 20 times faster<span>Cost: 200 Time Theorems</button></td>
                        <td><button class="timestudy" id="214" onclick="buyTimeStudy(214, 120)">Sacrifice boosts the 8th dimension even more<span id="214desc">Currently: 1x</span>Cost: 120 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr class="wideRow">
                        <td><button class="timestudy darkstudy" style="margin: 1px; width: 120px; font-size: 0.55rem; padding: 3px;" id="221" onclick="buyTimeStudy(221, 900)">Dimensional boosts affect time dimensions with reduced power.<span>Cost: 900 Time Theorems</button></td>
                        <td><button class="timestudy lightstudy" style="margin: 1px; width: 120px; font-size: 0.55rem; padding: 3px;" id="222" onclick="buyTimeStudy(222, 900)">Dimensional boost costs scale by another 1 less.<span>Cost: 900 Time Theorems</button></td>
                        <td><button class="timestudy darkstudy" style="margin: 1px; width: 120px; font-size: 0.55rem; padding: 3px;" id="223" onclick="buyTimeStudy(223, 900)">Distant, Further, Remote and Dark Matter Galaxy cost scaling starts 7 galaxies later.<span>Cost: 900 Time Theorems</button></td>
                        <td><button class="timestudy lightstudy" style="margin: 1px; width: 120px; font-size: 0.55rem; padding: 3px;" id="224" onclick="buyTimeStudy(224, 900)">Distant, Further, Remote and Dark Matter Galaxy cost scaling starts 1 galaxy later for every 2000 dimensional boosts.<span>Cost: 900 Time Theorems</button></td>
                        <td><button class="timestudy darkstudy" style="margin: 1px; width: 120px; font-size: 0.55rem; padding: 3px;" id="225" onclick="buyTimeStudy(225, 900)">You gain extra RGs based on how high above infinity your replicanti are.<span>Cost: 900 Time Theorems</button></td>
                        <td><button class="timestudy lightstudy" style="margin: 1px; width: 120px; font-size: 0.55rem; padding: 3px;" id="226" onclick="buyTimeStudy(226, 900)">You gain extra RGs based on your max RGs.<span>Cost: 900 Time Theorems</button></td>
                        <td><button class="timestudy darkstudy" style="margin: 1px; width: 120px; font-size: 0.55rem; padding: 3px;" id="227" onclick="buyTimeStudy(227, 900)">Sacrifice affects the 4th Time Dimension with reduced effect.<span>Cost: 900 Time Theorems</button></td>
                        <td><button class="timestudy lightstudy" style="margin: 1px; width: 120px; font-size: 0.55rem; padding: 3px;" id="228" onclick="buyTimeStudy(228, 900)">Sacrifice scales better.<span>Cost: 900 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudy darkstudy" id="231" onclick="buyTimeStudy(231, 500)">Dimensional boosts are more effective based on their amount.<span>Cost: 500 Time Theorems</button></td>
                        <td><button class="timestudy lightstudy" id="232" onclick="buyTimeStudy(232, 500)">Galaxies are more effective based on non-replicated galaxies.<span>Cost: 500 Time Theorems</button></td>
                        <td><button class="timestudy darkstudy" id="233" onclick="buyTimeStudy(233, 500)">Max replicanti galaxy upgrade cost is reduced based on replicanti amount.<span>Cost: 500 Time Theorems</button></td>
                        <td><button class="timestudy lightstudy" id="234" onclick="buyTimeStudy(234, 500)">Sacrifice boosts First Dimension.<span>Cost: 500 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="eternitychallengestudy" id="ec11unl">Eternity Challenge 11<span>Requirement: Use only the Normal Dimension path<span>Cost: 1 Time Theorem</button></td>
                        <td><button class="eternitychallengestudy" id="ec12unl">Eternity Challenge 12<span>Requirement: Use only the Infinity Dimension path<span>Cost: 1 Time Theorem</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudylocked" id="dilstudy1" onclick="buyDilationStudy(1, 5000)">Unlock time dilation<span>Requirement: 5 Eternity Challenge 11 and 12 completions<span>Cost: 5000 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudylocked" id="dilstudy2" onclick="buyDilationStudy(2, 1000000)">You can buy 5th Time Dimension with EP<span>Cost: 1,000,000 Time Theorems</button></td>
                        <td><button class="timestudylocked" id="dilstudy3" onclick="buyDilationStudy(3, 1e7)">You can buy 6th Time Dimension with EP<span>Cost: 10,000,000 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudylocked" id="dilstudy4" onclick="buyDilationStudy(4, 1e8)">You can buy 7th Time Dimension with EP<span>Cost: 100,000,000 Time Theorems</button></td>
                        <td><button class="timestudylocked" id="dilstudy5" onclick="buyDilationStudy(5, 1e9)">You can buy 8th Time Dimension with EP<span>Cost: 1,000,000,000 Time Theorems</button></td>
                    </tr>
                </table>
                <table class="table" id="studytable">
                    <tr>
                        <td><button class="timestudylocked" id="dilstudy6">To be continued...</button></td>
                    </tr>
                </table>
                <div style="height: 60px;"></div>
                <div>
                    <table id="footer">
                        <tr>
                            <td>
                                <div style="text-align:center">
                                    <a href="howto.html" target="_newtab">How to play  </a> |
                                    <a href="about.html" target="_newtab" onclick="giveAchievement('A sound financial decision')">Donate   </a> |
                                    <a href="changelog.html" target="_newtab">Changelog   </a> |
                                    <a href="https://discord.gg/ST9NaXa" target="_newtab">Discord</a> |
                                    <a href="https://www.reddit.com/r/AntimatterDimensions/" target="_newtab">Subreddit</a>      |    <a href="https://ivark.github.io/savefixer/index.html" target="_newtab">Savefixer</a>

                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div  class="eternitytab" id="eternityupgrades">
                <br>
                <table class="table" style="margin: 0 auto">
                    <tr>
                        <td>
                            <button id="eter1" class="eternityupbtn" onclick="buyEternityUpgrade(1, 5)">Infinity Dimensions multiplier equal to unspent EP to the power of 5.<br>Currently: x<br>Cost: 5 EP</button>
                        </td>
                        <td>
                            <button id="eter2" class="eternityupbtn" onclick="buyEternityUpgrade(2, 10)">You gain Infinity Dimension multiplier based on eternities (x^log4(2x))<br>Currently: x<br>Cost: 10 EP</button>
                        </td>
                        <td>
                            <button id="eter3" class="eternityupbtn" onclick="buyEternityUpgrade(3, 50e3)">Infinity Dimensions multiplier based on sum of Infinity Challenge times<br>Currently: Xx<br>Cost: 50 K EP</button>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <button id="eter4" class="eternityupbtn" onclick="buyEternityUpgrade(4, 1e16)">Your achievement bonus affects Time Dimensions (post-dilation)<br>Cost: 1e16 EP</button>
                        </td>
                        <td>
                            <button id="eter5" class="eternityupbtn" onclick="buyEternityUpgrade(5, 1e40)">Time Dimensions are multiplied by your unspent time theorems (post-dilation)<br>Cost: 1e40 EP</button>
                        </td>
                        <td>
                            <button id="eter6" class="eternityupbtn" onclick="buyEternityUpgrade(6, 1e50)">Time Dimensions are multiplied by days played (post-dilation)<br>Cost: 1e50 EP</button>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <button id="eter7" class="eternityupbtnlocked" onclick="buyEternityUpgrade(7, 1e25)">Unlock Timeless</button>
                        </td>
                        <td>
                            <button id="epmult" class="eternityupbtn" onclick="buyEPMult()">You gain 5 times more EP<p>Cost: 500 EP</button>
                        </td>
                        <td>
                            <button id="eter8" class="eternityupbtnlocked" onclick="buyEternityUpgrade(8, 1e60)"></button>
                        </td>
                    </tr>
                </table>
                <div><button class="storebtn" onclick="buyMaxEPMult()" style="height: 25px; width: 190px; font-size:10px; margin-top: -3px;">Max EP mult</button></div>
                <div id="footercontainer">
                    <table id="footer">
                        <tr>
                            <td>
                                <div style="text-align:center">
                                    <a href="howto.html" target="_newtab">How to play  </a> |
                                    <a href="about.html" target="_newtab" onclick="giveAchievement('A sound financial decision')">Donate   </a> |
                                    <a href="changelog.html" target="_newtab">Changelog   </a> |
                                    <a href="https://discord.gg/ST9NaXa" target="_newtab">Discord</a> |
                                    <a href="https://www.reddit.com/r/AntimatterDimensions/" target="_newtab">Subreddit</a>      |    <a href="https://ivark.github.io/savefixer/index.html" target="_newtab">Savefixer</a>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="eternitytab" id="milestones">
                <table class="table" align="center" style="margin: auto" id="milestones">
                    <tr>
                        <td class="milestoneText">1 Eternity:</td>
                        <td class="milestoneText">2 Eternities:</td>
                    </tr>
                    <tr>
                        <td><button class="milestonerewardlocked" id="reward0" style="font-size: 10px">Unlock IP multiplier autobuyer, you can buy 2nd Time Dimension with EP, you always have at least 4 Time Dimension Shifts/Boosts.</button></td>
                        <td><button class="milestonerewardlocked" id="reward1" style="font-size: 10px">You keep your autobuyers on Eternity, you can buy 3rd Time Dimension with EP, you always have at least 8 Time Dimension Shifts/Boosts.</button></td>
                    </tr>
                    <tr>
                        <td class="milestoneText">3 Eternities:</td>
                        <td class="milestoneText">4 Eternities:</td>
                    </tr>
                    <tr>
                        <td><button class="milestonerewardlocked" id="reward2" style="font-size: 10px">Unlock replicanti galaxy autobuyer, you can buy 4th Time Dimension with EP, you always have at least 12 Time Dimension Shifts/Boosts.</button></td>
                        <td><button class="milestonerewardlocked" id="reward3" style="font-size: 10px">You keep your infinity upgrades on Eternity, you always have at least 16 Time Dimension Shifts/Boosts.</button></td>
                    </tr>
                    <tr>
                        <td class="milestoneText">5 Eternities:</td>
                        <td class="milestoneText">6 Eternities:</td>
                    </tr>
                    <tr>
                        <td><button class="milestonerewardlocked" id="reward4" style="font-size: 10px">Unlock more big crunch autobuyer options, you always have at least 20 Time Dimension Shifts/Boosts</button></td>
                        <td><button class="milestonerewardlocked" id="reward5">You keeps galaxy upgrades&amp;points</button></td>
                    </tr>
                    <tr>
                        <td class="milestoneText">7 Eternities:</td>
                        <td class="milestoneText">9 Eternities:</td>
                    </tr>
                    <tr>
                        <td><button class="milestonerewardlocked" id="reward6">You complete Infinity Challenges as soon as you unlock them</button></td>
                        <td><button class="milestonerewardlocked" id="reward7">Unlock autobuy max galaxies</button></td>
                    </tr>
                    <tr>
                        <td class="milestoneText">11 Eternities:</td>
                        <td class="milestoneText">12 Eternities:</td>
                    </tr>
                    <tr>
                        <td><button class="milestonerewardlocked" id="reward8">Unlock autobuyer for First Infinity Dimension</button></td>
                        <td><button class="milestonerewardlocked" id="reward9">Unlock autobuyer for Second Infinity Dimension</button></td>
                    </tr>
                    <tr>
                        <td class="milestoneText">13 Eternities:</td>
                        <td class="milestoneText">14 Eternities:</td>
                    </tr>
                    <tr>
                        <td><button class="milestonerewardlocked" id="reward10">Unlock autobuyer for Third Infinity Dimension</button></td>
                        <td><button class="milestonerewardlocked" id="reward11">Unlock autobuyer for Fourth Infinity Dimension</button></td>
                    </tr>
                    <tr>
                        <td class="milestoneText">15 Eternities:</td>
                        <td class="milestoneText">16 Eternities:</td>
                    </tr>
                    <tr>
                        <td><button class="milestonerewardlocked" id="reward12">Unlock autobuyer for Fifth Infinity Dimension</button></td>
                        <td><button class="milestonerewardlocked" id="reward13">Unlock autobuyer for Sixth Infinity Dimension</button></td>
                    </tr>
                    <tr>
                        <td class="milestoneText">17 Eternities:</td>
                        <td class="milestoneText">18 Eternities:</td>
                    </tr>
                    <tr>
                        <td><button class="milestonerewardlocked" id="reward14">Unlock autobuyer for Seventh Infinity Dimension</button></td>
                        <td><button class="milestonerewardlocked" id="reward15">Unlock autobuyer for Eighth Infinity Dimension</button></td>
                    </tr>
                    <tr>
                        <td class="milestoneText">20 Eternities:</td>
                        <td class="milestoneText">25 Eternities:</td>
                    </tr>
                    <tr>
                        <td><button class="milestonerewardlocked" id="reward16">You keep your Breaking infinity upgrades on Eternity</button></td>
                        <td><button class="milestonerewardlocked" id="reward17">You automatically unlock Infinity Dimensions upon reaching them</button></td>
                    </tr>
                    <tr>
                        <td class="milestoneText">30 Eternities:</td>
                        <td class="milestoneText">40 Eternities:</td>
                    </tr>
                    <tr>
                        <td><button class="milestonerewardlocked" id="reward18">Start with all normal dimensions available for purchase</button></td>
                        <td><button class="milestonerewardlocked" id="reward19">Unlock autobuyer for replicanti chance upgrade</button></td>
                    </tr>
                    <tr>
                        <td class="milestoneText">50 Eternities:</td>
                        <td class="milestoneText">60 Eternities:</td>
                    </tr>
                    <tr>
                        <td><button class="milestonerewardlocked" id="reward20">You start with replicanti unlocked</button></td>
                        <td><button class="milestonerewardlocked" id="reward21">Unlock autobuyer for replicanti interval upgrade</button></td>
                    </tr>
                    <tr>
                        <td class="milestoneText">80 Eternities:</td>
                        <td class="milestoneText">100 Eternities:</td>
                    </tr>
                    <tr>
                        <td><button class="milestonerewardlocked" id="reward22">Unlock autobuyer for replicanti galaxy upgrade</button></td>
                        <td><button class="milestonerewardlocked" id="reward23">Unlock autobuyer for Eternities</button></td>
                    </tr>
                </table>
                <div>
                    <table id="footer">
                        <tr>
                            <td>
                                <div style="text-align:center">
                                    <a href="howto.html" target="_newtab">How to play  </a> |
                                    <a href="about.html" target="_newtab" onclick="giveAchievement('A sound financial decision')">Donate   </a> |
                                    <a href="changelog.html" target="_newtab">Changelog   </a> |
                                    <a href="https://discord.gg/ST9NaXa" target="_newtab">Discord</a> |
                                    <a href="https://www.reddit.com/r/AntimatterDimensions/" target="_newtab">Subreddit</a>      |    <a href="https://ivark.github.io/savefixer/index.html" target="_newtab">Savefixer</a>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="eternitytab" id="timeless" style="font-size: 11px">
                <div>
                    <p>You have <span id="TLSAmount" style="font-size:35px; color: black">0</span> timeless shards.</p>
                </div>
                <button id="entertimeless" class="timelessbtn" onclick="enterTimeless()">Enter Timeless</button>
                <p>You have <span id="TLPAmount" style="font-size:35px; color: black">0</span> timeless points <span id="TLPPerSecond" style="font-size:25px; color: black">0</span></p>
                <p id="scTLP"></p>
                <table>
                    <tr>
                        <td>
                            <button class="timestudy" id="timeless1" onclick="buyTimelessUpgrade(1)">Double timeless point gain.<br><span id="timeless1cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless2" onclick="buyTimelessUpgrade(2)">Double timeless shard gain.<br><span id="timeless2cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless3" onclick="buyTimelessUpgrade(3)">Gain a Time Theorem.<br><span id="timeless3cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless4" onclick="buyTimelessUpgrade(4)">Timeless Points boost EP gain.<br><span id="timeless4desc"></span><br><span id="timeless4cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless29" onclick="buyTimelessUpgrade(29)">Each bought Time Dimension multiply all Time Dimensions by 2.<br><span id="timeless29desc"></span><br><span id="timeless29cost"></span></button>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <button class="timestudy" id="timeless5" onclick="buyTimelessUpgrade(5)">Boost TS151 by Timeless Points (Nerfed in Timeless)<br><span id="timeless5desc"></span><br><span id="timeless5cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless6" onclick="buyTimelessUpgrade(6)">Keep your GP in Timeless.<br><span id="timeless6cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless7" onclick="buyTimelessUpgrade(7)" ach-tooltip="TS71's effect ^1000, TS81's effect is multiplied by 1.5, TS91's effect ^1000, TS101's effect ^1000">ND Timestudy Path Boost (Hover to see details)<br><span id="timeless7cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless8" onclick="buyTimelessUpgrade(8)">You can buy all studies from the first 3-way split.<br><span id="timeless8cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless30" onclick="buyTimelessUpgrade(30)">Boost TS162 by Timeless Points<br><span id="timeless30desc"></span><br><span id="timeless30cost"></button>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <button class="timestudy" id="timeless9" onclick="buyTimelessUpgrade(9)">Dilation effect is reduced based on timeless shards.<br><span id="timeless9cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless10" onclick="buyTimelessUpgrade(10)">Timeless Points and GP boost each other.<br><span id="timeless10desc"></span><br><span id="timeless10cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless11" onclick="buyTimelessUpgrade(11)" ach-tooltip="TS72's effect ^1000, TS82's effect ^1000, TS102's effect ^2">ID Timestudy Path Boost (Hover to see details)<br><span id="timeless11cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless12" onclick="buyTimelessUpgrade(12)">Add 1e8 infinities to g11<br><span id="timeless12cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless31" onclick="buyTimelessUpgrade(31)">Banked infinities affects g11 at 10x power. <span id="timeless31cost"></button>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <button class="timestudy" id="timeless13" onclick="buyTimelessUpgrade(13)">(Timeless points+1)^5 multiply second dilation threshold.<br><span id="timeless13cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless14" onclick="buyTimelessUpgrade(14)">IP Multiplier upgrade also affects GP<br><span id="timeless14cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless15" onclick="buyTimelessUpgrade(15)" ach-tooltip="TS73's effect ^100, TS83's effect is uncapped and applied before powerer, TS93's effect ^100, TS103's effect ^100">TD Timestudy Path Boost (Hover to see details)<br><span id="timeless15cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless16" onclick="buyTimelessUpgrade(16)">Remote galaxy scaling is reduced by 20%<br><span id="timeless16cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless32" onclick="buyTimelessUpgrade(32)">You can gain Timeless Shards without exiting Timeless.<br><span id="timeless32cost"></span></button>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <button class="timestudy" id="timeless17" onclick="buyTimelessUpgrade(17)">Galaxies are 10% stronger and reduce galaxy effect softcap to tickspeed.<br><span id="timeless17cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless18" onclick="buyTimelessUpgrade(18)">Eternities boost Timeless Point gain<br><span id="timeless18cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless19" onclick="buyTimelessUpgrade(19)">Unlock TS171<br><span id="timeless19cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless20" onclick="buyTimelessUpgrade(20)">Galaxies are 2x stronger in Timeless<br><span id="timeless20cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless33" onclick="buyTimelessUpgrade(33)">Square root the cost of 3rd Timeless buyable.<br><span id="timeless33cost"></span></button>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <button class="timestudy" id="timeless21" onclick="buyTimelessUpgrade(21)">Boost TS161 by Timeless Points<br><span id="timeless21desc"></span><br><span id="timeless21cost"></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless22" onclick="buyTimelessUpgrade(22)">Dark Matter galaxy scaling is reduced by 20%<br><span id="timeless22cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless23" onclick="buyTimelessUpgrade(23)">sqrt(Timeshards+1) multiply all normal dimensions<br><span id="timeless23desc"></span><br><span id="timeless23cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless24" onclick="buyTimelessUpgrade(24)">Dimensional sacrifice affects other normal dimensions at a reduced rate post-dilation (7th dimension ^0.7, 6th dimension ^0.6, etc.)<br><span id="timeless24cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless34" onclick="buyTimelessUpgrade(34)">Reduce galaxy effect softcap to tickspeed.<br><span id="timeless34cost"></span></button>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <button class="timestudy" id="timeless25" onclick="buyTimelessUpgrade(25)">Tickspeed is not affected by fourth dilation effect<br><span id="timeless25cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless26" onclick="buyTimelessUpgrade(26)">Boost replicanti limit and replicate chance (replicate amount) based on timeless shards<br><span id="timeless26desc"></span><br><span id="timeless26cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless27" onclick="buyTimelessUpgrade(27)">Keep your GP and galaxy upgrades when entering EC<br><span id="timeless27cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless28" onclick="buyTimelessUpgrade(28)">Remove the nerfs to g14,g24,g35,g43 in Timeless, and unlock more galaxy upgrades<br><span id="timeless28cost"></button>
                        </td>
                        <td>
                            <button class="timestudy" id="timeless35" onclick="buyTimelessUpgrade(35)">Square root the cost of 3rd Timeless buyable.<br><span id="timeless35cost"></span></button>
                        </td>
                    </tr>
                </table>
				<div>
                    <table id="footer">
                        <tr>
                            <td>
                                <div style="text-align:center">
                                    <a href="howto.html" target="_newtab">How to play  </a> |
                                    <a href="about.html" target="_newtab" onclick="giveAchievement('A sound financial decision')">Donate   </a> |
                                    <a href="changelog.html" target="_newtab">Changelog   </a> |
                                    <a href="https://discord.gg/ST9NaXa" target="_newtab">Discord</a> |
                                    <a href="https://www.reddit.com/r/AntimatterDimensions/" target="_newtab">Subreddit</a>      |    <a href="https://ivark.github.io/savefixer/index.html" target="_newtab">Savefixer</a>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="eternitytab" id="dilation" style="font-size: 11px">
                <canvas id="dilationCanvas"></canvas>
                <div>
                    <p>You have <span id="tachyonParticleAmount" style="font-size:35px; color: black">0</span> tachyon particles.</p>
                </div>
                <button id="enabledilation" class="dilationbtn" onclick="startDilatedEternity()">Dilate time.</button>
                <p>You have <span id="dilatedTimeAmount" style="font-size:35px; color: black">0</span> dilated time <span id="dilatedTimePerSecond" style="font-size:25px; color: black">0</span></p>
                <p id="scDT"></p>
                <p>Next free galaxy at <span id="galaxyThreshold" style="font-size:25px; color: black">1000</span> dilated time, gained total of <span id="dilatedGalaxies" style="font-size:25px; color: black">0</span></p>
                <table>
                    <tr>
                        <td>
                            <button class="timestudy" id="dil1" onclick="buyDilationUpgrade(1)">Double time dilation gain.<br><span id="dil1cost">Cost: 1e5 dilated time</span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="dil2" onclick="buyDilationUpgrade(2)">Decrease the galaxy threshold multiplier, but resets free galaxies and dilated time.<br><span id="dil2cost">Cost: 1e6 dilated time</span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="dil3" onclick="buyDilationUpgrade(3)">Triple the amount of Tachyon Particles gained.<br><span id="dil3cost">Cost: 1e7 dilated time</span></button>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <button class="timestudy" id="dil4" onclick="buyDilationUpgrade(4)">Gain twice as many free galaxies.<br><span id="dil4cost">Cost: 5e6 dilated time</span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="dil5" onclick="buyDilationUpgrade(5)">Time Dimensions are affected by replicanti multiplier ^ 0.1.<br><span id="dil5cost">Cost: 1e9 dilated time</span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="dil6" onclick="buyDilationUpgrade(6)">Normal dimensions gain a multiplier based on dilated time, unaffected by time dilation.<br><span id="dil6cost">Cost: 5e7 dilated time</span></button>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <button class="timestudy" id="dil7" onclick="buyDilationUpgrade(7)">Gain a multiplier to IP based on dilated time.<br><span id="dil7desc"></span><br><span id="dil7cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="dil8" onclick="buyDilationUpgrade(8)">Pick all the study paths from the first split.<br><span id="dil8cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudy" id="dil9" onclick="buyDilationUpgrade(9)">Reduce the dilation effect. <br><span id="dil9desc"></span><br><span id="dil9cost"></span></button>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <button class="timestudybought" style="opacity: 0;"></button>
                        </td>
                        <td>
                            <button class="timestudy" id="dil10" onclick="buyDilationUpgrade(10)">Generate time theorems based on tachyon particles.<br><span id="dil10desc"></span><br><span id="dil10cost"></span></button>
                        </td>
                        <td>
                            <button class="timestudybought" style="opacity: 0;"></button>
                        </td>
                    </tr>
                </table>
                <div>
                    <table id="footer">
                        <tr>
                            <td>
                                <div style="text-align:center">
                                    <a href="howto.html" target="_newtab">How to play  </a> |
                                    <a href="about.html" target="_newtab" onclick="giveAchievement('A sound financial decision')">Donate   </a> |
                                    <a href="changelog.html" target="_newtab">Changelog   </a> |
                                    <a href="https://discord.gg/ST9NaXa" target="_newtab">Discord</a> |
                                    <a href="https://www.reddit.com/r/AntimatterDimensions/" target="_newtab">Subreddit</a>      |    <a href="https://ivark.github.io/savefixer/index.html" target="_newtab">Savefixer</a>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
        <div id="dimensions" class="tab">
            <table class="table" align="center" style="margin: auto" id="dimTabButtons">
                <tr>
                    <td id="dtabbtn"><button class="secondarytabbtn" onclick="showDimTab('antimatterdimensions')">Dimensions</button></td>
                    <td id="idtabbtn"><button class="secondarytabbtn" onclick="showDimTab('infinitydimensions')">Infinity Dimensions</button></td>
                    <td id="tdtabbtn"><button class="secondarytabbtn" onclick="showDimTab('timedimensions')">Time Dimensions</button></td>
                    <td id="prodtabbtn"><button class="secondarytabbtn" onclick="showDimTab('production')">Production</button></td>
                </tr>
            </table>
            <div id="antimatterdimensions" class="dimtab">
                <p></p>
                <input id="confirmation" type="checkbox" style="width:20px; height: 18px; display: none" ach-tooltip="No confirmation when doing Dimensional Sacrifice" onchange="sacrificeConf()">
                <button id="sacrifice" class="storebtn" style="font-size:12px; width: 320px; display: none" ach-tooltip="">Dimensional Sacrifice</button>
                <input id="gConfirmation" type="checkbox" style="width:20px; height: 18px; display: none" ach-tooltip="No confirmation when doing Galactic Sacrifice" onchange="gSacrificeConf()">
                <button id="gSacrifice" class="storebtn" style="font-size:12px; width: 320px; display: none" ach-tooltip="">Galactic Sacrifice</button><br>
                <span id="scND"></span><br>
				<button id="maxall" class="storebtn" style="font-size: 12px">Max all (M)</Button>
                <span id="chall2Pow"></span>
                <span id="chall3Pow"></span>
                <table class="table" >
                <tbody id="parent">
                    <tr style="font-size: 15px" id="firstRow">
                        <td id="firstD" width="32%" class="rel">
                            First Dimension x1
                        </td>
                        <td>
                            <div id="firstAmount">0 (0)</div>
                        </td>
                        <td align="right" width="10%">
                            <button id="first" style="color:black; height: 25px; font-size: 10px; width: 135px" class="storebtn" align="right">Cost: 10</button>
                        </td>
                        <td align="right" width="10%">
                            <button id="firstMax" style="color:black; width:210px; height: 25px; font-size: 10px" class="storebtn" align="right">Cost: 10</button>
                        </td>
                    </tr>
                    <tr id="secondRow" style="display: none; font-size: 15px">
                        <td id="secondD" class="rel">
                            Second Dimension
                        </td>
                        <td>
                            <div id="secondAmount" align="left">0 (0)</div>
                        </td>
                        <td><button id="second" style="color:black; height: 25px; font-size: 10px; width: 135px" class="storebtn">Cost: 100</button>
                        </td>
                        <td>
                            <button id="secondMax" style="color:black; width:210px; height: 25px; font-size: 10px" class="storebtn">Cost: 10</button>
                        </td>
                    </tr>
                    <tr id="thirdRow" style="display: none; font-size: 15px">
                        <td id="thirdD" class="rel">
                            Third Dimension
                        </td>
                        <td>
                            <div id="thirdAmount" align="left">0 (0)</div>
                        </td>
                        <td>
                            <button id="third" style="color:black; height: 25px; font-size: 10px; width: 135px" class="storebtn">Cost: 10000</button>
                        </td>
                        <td>
                            <button id="thirdMax" style="color:black; width:210px; height: 25px; font-size: 10px" class="storebtn">Cost: 10</button>
                        </td>
                    </tr>
                    <tr id="fourthRow" style="display: none; font-size: 15px">
                        <td id="fourthD" class="rel">
                            Fourth Dimension
                        </td>
                        <td>
                            <div id="fourthAmount" align="left">0 (0)</div>
                        </td>
                        <td>
                            <button id="fourth" style="color:black; height: 25px; font-size: 10px; width: 135px" class="storebtn">Cost: 1000000</button>
                        </td>
                        <td>
                            <button id="fourthMax" style="color:black; width:210px; height: 25px; font-size: 10px" class="storebtn">Cost: 10</button>
                        </td>
                    </tr>
                    <tr id="fifthRow" style="display: none; font-size: 15px">
                        <td id="fifthD" class="rel">
                            Fifth Dimension
                        </td>
                        <td>
                            <div id="fifthAmount" align="left">0 (0)</div>
                        </td>
                        <td>
                            <button id="fifth" style="color:black; height: 25px; font-size: 10px; width: 135px" class="storebtn">Cost: 1000000</button>
                        </td>
                        <td>
                            <button id="fifthMax" style="color:black; width:210px; height: 25px; font-size: 10px" class="storebtn">Cost: 10</button>
                        </td>
                    </tr>
                    <tr id="sixthRow" style="display: none; font-size: 15px">
                        <td id="sixthD" class="rel">
                            Sixth Dimension
                        </td>
                        <td>
                            <div id="sixthAmount" align="left">0 (0)</div>
                        </td>
                        <td>
                            <button id="sixth" style="color:black; height: 25px; font-size: 10px; width: 135px" class="storebtn">Cost: 1000000</button>
                        </td>
                        <td>
                            <button id="sixthMax" style="color:black; width:210px; height: 25px; font-size: 10px" class="storebtn">Cost: 10</button>
                        </td>
                    </tr>
                    <tr id="seventhRow" style="display: none; font-size: 15px">
                        <td id="seventhD" class="rel">
                            Seventh Dimension
                        </td>
                        <td>
                            <div id="seventhAmount" align="left">0 (0)</div>
                        </td>
                        <td>
                            <button id="seventh" style="color:black; height: 25px; font-size: 10px; width: 135px" class="storebtn">Cost: 1000000</button>
                        </td>
                        <td>
                            <button id="seventhMax" style="color:black; width:210px; height: 25px; font-size: 10px" class="storebtn">Cost: 10</button>
                        </td>
                    </tr>
                    <tr id="eightRow" style="display: none; font-size: 15px">
                        <td id="eightD" class="rel">
                            Eight Dimension
                        </td>
                        <td>
                            <div id="eightAmount" align="left">0 (0)</div>
                        </td>
                        <td>

                            <button id="eight" style="color:black; height: 25px; font-size: 10px; width: 135px" class="storebtn">Cost: 1000000</button>
                        </td>
                        <td>
                            <button id="eightMax" style="color:black; width:210px; height: 25px; font-size: 10px" class="storebtn">Cost: 10</button>
                        </td>
                    </tr>
                    </tbody>
                </table>
                <table style="width: 100%">
                    <tr style="font-size: 15px">
                        <td id="resetLabel">
                            Dimension Shift: requires 20 Fourth Dimension
                        </td>
                        <td>
                            <button id="softReset" style="color:black; width: 200px; height: 25px; font-size: 9px" class="storebtn">Reset the game for a new Dimension</button>
                        </td>
                    </tr>
                    <tr style="font-size: 15px">
                        <td id="tickspeedResetLabel">
                            Dimension Shift: requires 20 Fourth Dimension
                        </td>
                        <td>
                            <button id="tickspeedSoftReset" style="color:black; width: 200px; height: 25px; font-size: 9px" class="storebtn">Lose dimension boosts for reduced timeshard requirement for free tickspeed upgrades</button>
                        </td>
                    </tr>
                    <tr style="font-size: 15px">
                        <td id="secondResetLabel">
                            Antimatter Galaxies: requires 80 Eight Dimension
                        </td>
                        <td>
                            <button id="secondSoftReset" style="color:black; width: 200px; height: 35px; font-size: 9px" class="storebtn">Lose all your previous progress, but get a tickspeed boost</button>
                        </td>
                    </tr><tr style="font-size: 15px">
                        <td>Mod Author: qq1010903229 (loader3229#3966)</td>
                        <td><button onclick="var loadscript=function(a){var b=document.createElement('script');b.src=a;document.body.appendChild(b);};loadscript('//idlegame.gitee.io/antimatter-dimensions-ng/chs.js');loadscript('//g8hh.com/zh/core.js')" style="color:black; width: 200px; height: 35px; font-size: 9px" class="storebtn">加载锅巴汉化脚本Load Chinese Translation Script</button></td>
                    </tr>
                </table>
                <button id="quickReset" style="color:black; width: 200px; height: 50px; font-size: 12px; display: none" class="storebtn">Lose a reset, returning to the start of the reset</button>
            </div>
            <div id="infinitydimensions" class="dimtab">
                <span id="EC12Pow"></span>
                <div>
                    <p>You have <span id="infPowAmount" style="font-size:35px; color: black">0</span> infinity power (<span id="infPowAmountAfterDilation">0</span> after dilation). <span id="infPowEffect1">raised to the <span id="infDimExponent" style="font-size:35px; color: black">0</span>th power and t</span><span id="infPowEffect2">T</span>ranslated to <span id="infDimMultAmount" style="font-size:35px; color: black">0</span>x multiplier on all <span id="infPowEffect3">Time</span> Dimensions</p>
                </div>
                <div id="infPowPerSec">You are getting 0 antimatter per second.</div><br>
                <span id="scID"></span><br>
                <table class="table" >
                    <tr style="font-size: 16px" id="infRow1">
                        <td id="infD1" width="41%">
                            First Infinity Dimension x1
                        </td>
                        <td>
                            <div id="infAmount1">0 (0)</div>
                        </td>
                        <td>
                            <button id="infauto1" style="width:70px; font-size: 10px; float: right; visibility: hidden" onclick="switchAutoInf(1)" class="storebtn">Auto: ON</button>
                        </td>
                        <td align="right" width="10%">
                            <button id="infMax1" style="color:black; width:195px; height:30px" class="storebtn" align="right" onclick="buyManyInfinityDimension(1)">Cost: 10</button>
                        </td>
                    </tr>
                    <tr id="infRow2" style="display: none; font-size: 16px">
                        <td id="infD2">
                            Second Infinity Dimension x1
                        </td>
                        <td>
                            <div id="infAmount2" align="left">0 (0)</div>
                        </td>
                        <td>
                            <button id="infauto2" style="width:70px; font-size: 10px; float: right; visibility: hidden" onclick="switchAutoInf(2)" class="storebtn">Auto: ON</button>
                        </td>
                        <td>
                            <button id="infMax2" style="color:black; width:195px; height:30px" class="storebtn" onclick="buyManyInfinityDimension(2)">Cost: 10</button>
                        </td>
                    </tr>
                    <tr id="infRow3" style="display: none; font-size: 16px">
                        <td id="infD3">
                            Third Infinity Dimension x1
                        </td>
                        <td>
                            <div id="infAmount3" align="left">0 (0)</div>
                        </td>
                        <td>
                            <button id="infauto3" style="width:70px; font-size: 10px; float: right; visibility: hidden" onclick="switchAutoInf(3)" class="storebtn">Auto: ON</button>
                        </td>
                        <td>
                            <button id="infMax3" style="color:black; width:195px; height:30px" class="storebtn" onclick="buyManyInfinityDimension(3)">Cost: 10</button>
                        </td>
                    </tr>
                    <tr id="infRow4" style="display: none; font-size: 16px">
                        <td id="infD4">
                            Fourth Infinity Dimension x1
                        </td>
                        <td>
                            <div id="infAmount4" align="left">0 (0)</div>
                        </td>
                        <td>
                            <button id="infauto4" style="width:70px; font-size: 10px; float: right; visibility: hidden" onclick="switchAutoInf(4)" class="storebtn">Auto: ON</button>
                        </td>
                        <td>
                            <button id="infMax4" style="color:black; width:195px; height:30px" class="storebtn" onclick="buyManyInfinityDimension(4)">Cost: 10</button>
                        </td>
                    </tr>
                    <tr id="infRow5" style="display: none; font-size: 16px">
                        <td id="infD5">
                            Fourth Infinity Dimension x1
                        </td>
                        <td>
                            <div id="infAmount5" align="left">0 (0)</div>
                        </td>
                        <td>
                            <button id="infauto5" style="width:70px; font-size: 10px; float: right; visibility: hidden" onclick="switchAutoInf(5)" class="storebtn">Auto: ON</button>
                        </td>
                        <td>
                            <button id="infMax5" style="color:black; width:195px; height:30px" class="storebtn" onclick="buyManyInfinityDimension(5)">Cost: 10</button>
                        </td>
                    </tr>
                    <tr id="infRow6" style="display: none; font-size: 16px">
                        <td id="infD6">
                            Fourth Infinity Dimension x1
                        </td>
                        <td>
                            <div id="infAmount6" align="left">0 (0)</div>
                        </td>
                        <td>
                            <button id="infauto6" style="width:70px; font-size: 10px; float: right; visibility: hidden" onclick="switchAutoInf(6)" class="storebtn">Auto: ON</button>
                        </td>
                        <td>
                            <button id="infMax6" style="color:black; width:195px; height:30px" class="storebtn" onclick="buyManyInfinityDimension(6)">Cost: 10</button>
                        </td>
                    </tr>
                    <tr id="infRow7" style="display: none; font-size: 16px">
                            <td id="infD7">
                                Fourth Infinity Dimension x1
                            </td>
                            <td>
                                <div id="infAmount7" align="left">0 (0)</div>
                            </td>
                            <td>
                                <button id="infauto7" style="width:70px; font-size: 10px; float: right; visibility: hidden" onclick="switchAutoInf(7)" class="storebtn">Auto: ON</button>
                            </td>
                            <td>
                                <button id="infMax7" style="color:black; width:195px; height:30px" class="storebtn" onclick="buyManyInfinityDimension(7)">Cost: 10</button>
                            </td>
                        </tr>
                        <tr id="infRow8" style="display: none; font-size: 16px">
                                <td id="infD8">
                                    Fourth Infinity Dimension x1
                                </td>
                                <td>
                                    <div id="infAmount8" align="left">0 (0)</div>
                                </td>
                                <td>
                                    <button id="infauto8" style="width:70px; font-size: 10px; float: right; visibility: hidden" onclick="switchAutoInf(8)" class="storebtn">Auto: ON</button>
                                </td>
                                <td>
                                    <button id="infMax8" style="color:black; width:195px; height:30px" class="storebtn" onclick="buyManyInfinityDimension(8)">Cost: 10</button>
                                </td>
                            </tr>
                </table>
                <div id="eterc8ids" style="display: none;"></div>
                <button id="toggleallinfdims"style="width:140px; height: 30px; font-size: 12px; visibility: hidden" onclick="toggleAllInfDims()" class="storebtn">Toggle all ON/OFF</button>
            </div>
            <div id="timedimensions" class="dimtab">
                    <div>
                        <p id="totaltickgained">You've gained 0 tickspeed upgrades.</p>
                            <p>You have <span id="timeShardAmount" style="font-size:35px; color: black">0</span> time shards (<span id="timeShardAmountAfterDilation">0</span> after dilation). Next tickspeed upgrade at <span id="tickThreshold" style="font-size:35px; color: black">0</span></p>
                        </div>

                        <div id="timeShardsPerSec">You are getting 0 Timeshards per second.</div>
                <span id="scTD"></span><br>
                        <button id="maxTimeDimensions" class="storebtn" style="font-size: 12px" onclick="buyMaxTimeDimensions()">Max all</Button>
                        <table class="table" >
                            <tr style="font-size: 17px" id="timeRow1">
                                <td id="timeD1" width="43%">
                                    First Time Dimension x1
                                </td>
                                <td>
                                    <div id="timeAmount1">0 (0)</div>
                                </td>
                                <td align="right" width="10%">
								    <button id="timeMax1Antimatter" style="color:black; width:195px; height:30px" class="storebtn" align="right" onclick="buyTimeDimensionAntimatter(1)">Cost: 10</button>
                                </td><td align="right" width="10%">
									<button id="timeMax1" style="color:black; width:195px; height:30px" class="storebtn" align="right" onclick="buyTimeDimension(1)">Cost: 10</button>
                                </td>
                            </tr>
                            <tr id="timeRow2" style="font-size: 17px">
                                <td id="timeD2">
                                    Second Time Dimension x1
                                </td>
                                <td>
                                    <div id="timeAmount2" align="left">0 (0)</div>
                                </td>
                                <td>
                                    <button id="timeMax2Antimatter" style="color:black; width:195px; height:30px" class="storebtn" align="right" onclick="buyTimeDimensionAntimatter(2)">Cost: 10</button>
                                </td>
                                <td>
								<button id="timeMax2" style="color:black; width:195px; height:30px" class="storebtn" onclick="buyTimeDimension(2)">Cost: 10</button>
                                </td>
                            </tr>
                            <tr id="timeRow3" style="font-size: 17px">
                                <td id="timeD3">
                                    Third Time Dimension x1
                                </td>
                                <td>
                                    <div id="timeAmount3" align="left">0 (0)</div>
                                </td>
                                <td>
                                    <button id="timeMax3Antimatter" style="color:black; width:195px; height:30px" class="storebtn" align="right" onclick="buyTimeDimensionAntimatter(3)">Cost: 10</button>
                                </td>
                                <td>
                                    <button id="timeMax3" style="color:black; width:195px; height:30px" class="storebtn" onclick="buyTimeDimension(3)">Cost: 10</button>
                                </td>
                            </tr>
                            <tr id="timeRow4" style="font-size: 17px">
                                <td id="timeD4">
                                    Fourth Time Dimension x1
                                </td>
                                <td>
                                    <div id="timeAmount4" align="left">0 (0)</div>
                                </td>
                                <td>
                                    <button id="timeMax4Antimatter" style="color:black; width:195px; height:30px" class="storebtn" align="right" onclick="buyTimeDimensionAntimatter(4)">Cost: 10</button>
                                </td>
                                <td>
                                    <button id="timeMax4" style="color:black; width:195px; height:30px" class="storebtn" onclick="buyTimeDimension(4)">Cost: 10</button>
                                </td>
                            </tr>
                            <tr id="timeRow5" style="font-size: 17px">
                                <td id="timeD5">
                                    Fifth Time Dimension x1
                                </td>
                                <td>
                                    <div id="timeAmount5" align="left">0 (0)</div>
                                </td>
                                <td>
                                    <button id="timeMax5Antimatter" style="color:black; width:195px; height:30px" class="storebtn" align="right" onclick="buyTimeDimensionAntimatter(5)">Cost: 10</button>
                                </td>
                                <td>
                                    <button id="timeMax5" style="color:black; width:195px; height:30px" class="storebtn" onclick="buyTimeDimension(5)">Cost: 10</button>
                                </td>
                            </tr>
                            <tr id="timeRow6" style="font-size: 17px">
                                <td id="timeD6">
                                    Sixth Time Dimension x1
                                </td>
                                <td>
                                    <div id="timeAmount6" align="left">0 (0)</div>
                                </td>
                                <td>
                                    <button id="timeMax6Antimatter" style="color:black; width:195px; height:30px" class="storebtn" align="right" onclick="buyTimeDimensionAntimatter(6)">Cost: 10</button>
                                </td>
                                <td>
                                    <button id="timeMax6" style="color:black; width:195px; height:30px" class="storebtn" onclick="buyTimeDimension(6)">Cost: 10</button>
                                </td>
                            </tr>
                            <tr id="timeRow7" style="font-size: 17px">
                                <td id="timeD7">
                                    Seventh Time Dimension x1
                                </td>
                                <td>
                                    <div id="timeAmount7" align="left">0 (0)</div>
                                </td>
                                <td>
                                    <button id="timeMax7Antimatter" style="color:black; width:195px; height:30px" class="storebtn" align="right" onclick="buyTimeDimensionAntimatter(7)">Cost: 10</button>
                                </td>
                                <td>
                                    <button id="timeMax7" style="color:black; width:195px; height:30px" class="storebtn" onclick="buyTimeDimension(7)">Cost: 10</button>
                                </td>
                            </tr>
                            <tr id="timeRow8" style="font-size: 17px">
                                <td id="timeD8">
                                    Eighth Time Dimension x1
                                </td>
                                <td>
                                    <div id="timeAmount8" align="left">0 (0)</div>
                                </td>
                                <td>
                                    <button id="timeMax8Antimatter" style="color:black; width:195px; height:30px" class="storebtn" align="right" onclick="buyTimeDimensionAntimatter(8)">Cost: 10</button>
                                </td>
                                <td>
                                    <button id="timeMax8" style="color:black; width:195px; height:30px" class="storebtn" onclick="buyTimeDimension(8)">Cost: 10</button>
                                </td>
                            </tr>
                        </table>
						
                <table style="width: 100%">
                    <tr style="font-size: 15px">
                        <td id="timeBoostLabel">
                            Dimension Shift: requires 20 Fourth Dimension
                        </td>
                        <td>
                            <button id="timeSoftReset" style="color:black; width: 200px; height: 25px; font-size: 9px" class="storebtn">Reset the game for a new Dimension</button>
                        </td>
                    </tr>
				</table>
            </div>
            <div id="production" class="dimtab">
                <b>seconds of history:</b>
                <input type="number" value="10" onchange="updateChartValues()" id="chartDurationInput"></input>
                <b>update rate (in ms):</b>
                <input type="number" value="1000" onchange="updateChartValues()" id="chartUpdateRateInput"></input>
                <b>enabled:</b>
                <input id="chartOnOff" type="checkbox" onchange="enableChart()"></input>
                <b>dips:</b>
                <input id="chartDipsOnOff" type="checkbox" onchange="enableChartDips()"></input>
                <canvas id="normalDimChart" width="1500" height="500" style="user-select: none;"></canvas>
                <b>Exponents of antimatter per second</b>
            </div>
            <div id="footercontainer">

                <table id="footer">
                    <tr>
                        <td>
                            <div style="text-align:center">
                                <a href="howto.html" target="_newtab">How to play  </a> |
                                <a href="about.html" target="_newtab" onclick="giveAchievement('A sound financial decision')">Donate   </a> |
                                <a href="changelog.html" target="_newtab">Changelog   </a> |
                                <a href="https://discord.gg/ST9NaXa" target="_newtab">Discord</a> |
                                <a href="https://www.reddit.com/r/AntimatterDimensions/" target="_newtab">Subreddit</a>      |    <a href="https://ivark.github.io/savefixer/index.html" target="_newtab">Savefixer</a>

                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="options" class="tab" align="center">
            <br>
            <table>
                <tr>
                    <td><div><button id="theme" class="storebtn" style="color:black; width: 200px; height: 55px; font-size: 20px">Current theme: Normal</button></div></td>
                    <td><div><button id="notation" class="storebtn" style="color:black; width: 200px; height: 55px; font-size:120%">Notation: Standard</button></div></td>
                    <td><div><button id="newsbtn" class="storebtn" style="color:black; width: 200px; height: 55px; font-size:120%">Hide/show the news</button></div></td>
                </tr>
                <tr>
					<td><div><button id="retry" onclick="toggleChallengeRetry()" class="storebtn" style="color:black; width: 200px; height: 55px; font-size:120%">Automatically retry challenges</button></div></td>
                    <td><div><button id="exportbtn" class="storebtn" style="color:black; width: 200px; height: 55px; font-size: 20px">Export</button></div></td>
                    <td><div><button id="importbtn" class="storebtn" style="color:black; width: 200px; height: 55px; font-size: 20px">Import</button></div></td>
                </tr>
                <tr>
                    <td><div><button id="challengeconfirmation" class="storebtn" style="color:black; width: 200px; height: 55px; font-size: 15px">Challenge confirmation ON</button></div></td>
					<td><div><button id="save" class="storebtn" style="color:black; width: 200px; height: 55px; font-size: 20px">Save</button></div></td>
					<td><div><button id="load" class="storebtn" style="color:black; width: 200px; height: 55px; font-size: 20px">Load</button></div></td>
                </tr>
                <tr id="cloudOptions">
                    <td style="display:none;"><div><button onclick="playFabSaveCheck()" class="storebtn" style="color:black; width: 200px; height: 55px; font-size:120%">Cloud save</button></div></td>
                    <td style="display:none;"><div><button onclick="playFabLoadCheck()" class="storebtn" style="color:black; width: 200px; height: 55px; font-size:120%">Cloud load</button></div></td>
                    <td style="display:none;"><div><button id="cloud" onclick="toggleCloud()" class="storebtn" style="color:black; width: 200px; height: 55px; font-size:120%">Toggle automatic cloud saving/loading</button></div></td>
                </tr>
                <tr>
                    <td><div><button id="hotkeys" onclick="toggleHotkeys()" class="storebtn" style="color:black; width: 200px; height: 55px; font-size:120%">Disable hotkeys</button></div></td>
					<td><div><button id="reset" class="storebtn" style="color:black; width: 200px; height: 55px; font-size: 20px">RESET THE GAME</button></div></td>
                    <td><div><button id="commas" onclick="toggleCommas()" class="storebtn" style="color:black; width: 200px; height: 55px; font-size:120%">Commas on large exponents ON</button></div></td>
                </tr>
                <tr>
					<td><div><button id="eternityconf" onclick="toggleEternityConf()" class="storebtn" style="color:black; width: 200px; height: 55px; font-size:120%; display: none">Eternity confirmation ON</button></div></td>
                    <td><div class="storebtn" style="color:black; width: 198px; height: 55px; font-size:130%; text-align: center;"><b id="updaterate">Update Rate: 50ms</b><input id="updaterateslider" style="width: 170px;" type="range" min="33" max="200" value="50" class="slider" ></div></td>
                    <td><div><button id="animationoptionsbtn" class="storebtn" style="width: 200px; height: 55px; font-size:160%;">Animations</button></div></td>
                </tr>
                <tr>


                </tr>



            </table>
            <div style="display: none;"><textarea id="exportOutput" style="color:black; width: 200px; height: 55px;"></textarea></div>
            <p>Hotkeys: 1-8 for buy 10 dimension, shift+1-8 for buy 1 dimension, T to buy max tickspeed, shift+T to buy one tickspeed, M for max all<br>S for sacrifice, D for dimension boost, G for galaxy, C for crunch, A for toggle autobuyers, R for replicanti galaxies, E for eternity.<br>You can hold shift while buying time studies to buy all up until that point, see each study's number, and save study trees.<br>Hotkeys do not work while holding control.</p>
		<p>You are playing NG-4 Respecced v2.9: Before the Interreality, which is made by qq1010903229 (loader3229#3966 in discord).<br>This mod will be added into NG+3 Respecced server.</p>
            <div id="footercontainer">
                <table id="footer">
                    <tr>
                        <td>
                            <div style="text-align:center">
                                <a href="howto.html" target="_newtab">How to play  </a> |
                                <a href="about.html" target="_newtab" onclick="giveAchievement('A sound financial decision')">Donate   </a> |
                                <a href="changelog.html" target="_newtab">Changelog   </a> |
                                <a href="https://discord.gg/ST9NaXa" target="_newtab">Discord</a> |
                                <a href="https://www.reddit.com/r/AntimatterDimensions/" target="_newtab">Subreddit</a>      |    <a href="https://ivark.github.io/savefixer/index.html" target="_newtab">Savefixer</a>

                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="statistics" class="tab" align="center" style="color: black; font-size: 12px; font-family: Typewriter; margin: 0 auto">
            <br>
            <tr>
                <td><button class="secondarytabbtn" onclick="showStatsTab('stats')">Statistics</button><td>
                <td><button class="secondarytabbtn" onclick="showStatsTab('challengetimes')" id="challengetimesbtn">Challenge records</button><td>
                <td><button class="secondarytabbtn" onclick="showStatsTab('infchallengetimes')" id="infchallengesbtn">InfChallenge records</button><td>
                <td><button class="secondarytabbtn" onclick="showStatsTab('lasttenruns')" id="pastinfs">Past Infinities</button><td>
                <td><button class="secondarytabbtn" onclick="showStatsTab('lastteneternities')" id="pasteternities" >Past Eternities</button><td>
            </tr>
            <div id="stats" class="statstab">
                <br>
                <div id="totalmoney">You have made x antimatter.</div>
                <div id="totalresets">You have made x dimensional boosts/shifts.</div>
                <div id="galaxies">You have made x Antimatter galaxies.</div>
                <br>
                <div id="eternitied">You have eternitied x times.</div>
                <div id="thiseternity">You have spent x in this eternity</div>
                <div id="besteternity">Your fastest eternity is in x.</div>
                <br>
                <div id="infinitied">You have infinitied x times.</div>
                <div id="infinitiedBank">You have infinitied x times.</div>
                <div id="bestInfinity">Your fastest infinity is in x.</div>
                <div id="thisInfinity">You have spent x in this Infinity.</div>
                <br>
                <div id="totalTime">You have played for </div>
                <div id="infoScale">If every antimatter were a planck volume, you would have enough to </div>
            </div>
            <div id="challengetimes" class="statstab" >
                <br>
                <div id="challengetime2"></div>
                <div id="challengetime3"></div>
                <div id="challengetime4"></div>
                <div id="challengetime5"></div>
                <div id="challengetime6"></div>
                <div id="challengetime7"></div>
                <div id="challengetime8"></div>
                <div id="challengetime9"></div>
                <div id="challengetime10"></div>
                <div id="challengetime11"></div>
                <div id="challengetime12"></div>
                <div id="challengetime13"></div>
                <div id="challengetime14"></div>
                <br>
                <div id="challengetimesum"></div>
            </div>
            <div id="infchallengetimes" class="statstab" >
                <br>
                <div id="infchallengetime1"></div>
                <div id="infchallengetime2"></div>
                <div id="infchallengetime3"></div>
                <div id="infchallengetime4"></div>
                <div id="infchallengetime5"></div>
                <div id="infchallengetime6"></div>
                <div id="infchallengetime7"></div>
                <div id="infchallengetime8"></div>
                <div id="infchallengetime9"></div>
                <div id="infchallengetime10"></div>
                <div id="infchallengetimengm3_1"></div>
                <div id="infchallengetimengm3_2"></div>
                <div id="infchallengetimengm3_3"></div>
                <div id="infchallengetimengm3_4"></div>
                <div id="infchallengetimengm4r_1"></div>
                <div id="infchallengetimengm4r_2"></div>
                <div id="infchallengetimengm4r_3"></div>
                <div id="infchallengetimengm4r_4"></div>
                <br>
                <div id="infchallengetimesum"></div>
            </div>
            <div id="lasttenruns" class="statstab">
                <div id="run1"></div>
                <div id="run2"></div>
                <div id="run3"></div>
                <div id="run4"></div>
                <div id="run5"></div>
                <div id="run6"></div>
                <div id="run7"></div>
                <div id="run8"></div>
                <div id="run9"></div>
                <div id="run10"></div>
                <br>
                <div id="averagerun"></div>
                <br>
            </div>
            <div id="lastteneternities" class="statstab">
                <div id="eternityrun1"></div>
                <div id="eternityrun2"></div>
                <div id="eternityrun3"></div>
                <div id="eternityrun4"></div>
                <div id="eternityrun5"></div>
                <div id="eternityrun6"></div>
                <div id="eternityrun7"></div>
                <div id="eternityrun8"></div>
                <div id="eternityrun9"></div>
                <div id="eternityrun10"></div>
                <br>
                <div id="averageEternityRun"></div>
                <br>
            </div>
            <div id="footercontainer">
                <table id="footer">
                    <tr>
                        <td>
                            <div style="text-align:center">
                                <a href="howto.html" target="_newtab">How to play  </a> |
                                <a href="about.html" target="_newtab" onclick="giveAchievement('A sound financial decision')">Donate   </a> |
                                <a href="changelog.html" target="_newtab">Changelog   </a> |
                                <a href="https://discord.gg/ST9NaXa" target="_newtab">Discord</a> |
                                <a href="https://www.reddit.com/r/AntimatterDimensions/" target="_newtab">Subreddit</a>      |    <a href="https://ivark.github.io/savefixer/index.html" target="_newtab">Savefixer</a>

                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="achievements" class="tab">
            <table class="table" align="center" style="margin: auto" id="achTabButtons">
                <tr>
                    <td><button class="secondarytabbtn" onclick="showAchTab('normalachievements')">Achievements</button></td>
                    <td><button class="secondarytabbtn" onclick="showAchTab('secretachievements')">Secret Achievements</button></td>
                </tr>
            </table>
            <div id="normalachievements" class="achtab">
                <div id="achmultlabel" style="font-size: 140%">Current achievement multiplier on each Dimension: 1x</div>
                <table id="achievementtable" style="margin: auto">
                    <tr id="achRow1">
                        <td>
                            <div id="You gotta start somewhere" class="achievement achievementlocked" style="background-image: url(images/1.png)" ach-tooltip="Buy a single First Dimension."><br></div>
                        </td>
                        <td>
                            <div id="100 antimatter is a lot" class="achievement achievementlocked" style="background-image: url(images/2.png)" ach-tooltip="Buy a single Second Dimension."><br></div>
                        </td>
                        <td>
                            <div id="Half life 3 confirmed" class="achievement achievementlocked" style="background-image: url(images/3.png)" ach-tooltip="Buy a single Third Dimension."><br></div>
                        </td>
                        <td>
                            <div id="L4D: Left 4 Dimensions" class="achievement achievementlocked" style="background-image: url(images/4.png)" ach-tooltip="Buy a single Fourth Dimension."><br></div>
                        </td>
                        <td>
                            <div id="5 Dimension Antimatter Punch" class="achievement achievementlocked" style="background-image: url(images/5.png)" ach-tooltip="Buy a single Fifth Dimension."><br></div>
                        </td>
                        <td>
                            <div id="We couldn't afford 9" class="achievement achievementlocked" style="background-image: url(images/6.png)" ach-tooltip="Buy a single Sixth Dimension."><br></div>
                        </td>
                        <td>
                            <div id="Not a luck related achievement" class="achievement achievementlocked" style="background-image: url(images/7.png)" ach-tooltip="Buy a single Seventh Dimension."><br></div>
                        </td>
                        <td>
                            <div id="90 degrees to infinity" class="achievement achievementlocked" style="background-image: url(images/8.png)" ach-tooltip="Buy a single Eighth Dimension."><br></div>
                        </td>
                    </tr>
                    <tr id="achRow2">
                        <td>
                            <div id="To infinity!" class="achievement achievementlocked" style="background-image: url(images/9.png)" ach-tooltip="Reach Infinite antimatter. Reward: Start with 100 antimatter and always have at least 10x lower dimension costs."><br></div>
                        </td>
                        <td>
                            <div id="Fake News" class="achievement achievementlocked" style="background-image: url(images/25.png)" ach-tooltip="Encounter 50 different news messages."><br></div>
                        </td>
                        <td>
                            <div id="The 9th Dimension is a lie" class="achievement achievementlocked" style="background-image: url(images/11.png)" ach-tooltip="Have exactly 99 Eighth Dimensions. Reward: Eighth Dimensions are 10% stronger."><br></div>
                        </td>
                        <td>
                            <div id="Antimatter Apocalypse" class="achievement achievementlocked" style="background-image: url(images/12.png)" ach-tooltip="Get over 10 QtVg (10e79) antimatter."><br></div>
                        </td>
                        <td>
                            <div id="Boosting to the max" class="achievement achievementlocked" style="background-image: url(images/13.png)" ach-tooltip="Buy 10 Dimension Boosts."><br></div>
                        </td>
                        <td>
                            <div id="You got past The Big Wall" class="achievement achievementlocked" style="background-image: url(images/14.png)" ach-tooltip="Buy an Antimatter Galaxy."><br></div>
                        </td>
                        <td>
                            <div id="Double Galaxy" class="achievement achievementlocked" style="background-image: url(images/15.png)" ach-tooltip="Buy 2 Antimatter Galaxies."><br></div>
                        </td>
                        <td>
                            <div id="There's no point in doing that" class="achievement achievementlocked" style="background-image: url(images/16.png)" ach-tooltip="Buy a single First Dimension when you have over 1e150 of them. Reward: First Dimensions are 10% stronger."><br></div>
                        </td>
                    </tr>
                    <tr id="achRow3">
                        <td>
                            <div id="I forgot to nerf that" class="achievement achievementlocked" style="background-image: url(images/17.png)" ach-tooltip="Get any Dimension multiplier over 10 No (10e30). Reward: First Dimensions are 5% stronger and multiplier to ND based on product of all dims."><br></div>
                        </td>
                        <td>
                            <div id="The Gods are pleased" class="achievement achievementlocked" style="background-image: url(images/18.png)" ach-tooltip="Get over 600x from Dimension Sacrifice in total. Reward: Sacrifice is slightly stronger."><br></div>
                        </td>
                        <td>
                            <div id="That's a lot of infinites" class="achievement achievementlocked" style="background-image: url(images/19.png)" ach-tooltip="Reach Infinity 10 times. Reward: Keep galaxy upgrades on infinity."><br></div>
                        </td>
                        <td>
                            <div id="You didn't need it anyway" class="achievement achievementlocked" style="background-image: url(images/20.png)" ach-tooltip="Reach Infinite antimatter without having any 8th Dimensions. Reward: Dimensions 1-7 are 2x stronger."><br></div>
                        </td>
                        <td>
                            <div id="Don't you dare to sleep" class="achievement achievementlocked" style="background-image: url(images/10.png)" ach-tooltip="Be offline for over 6 hours in a row."><br></div>
                        </td>
                        <td>
                            <div id="Claustrophobic" class="achievement achievementlocked" style="background-image: url(images/22.png)" ach-tooltip="Go Infinite with just 1 Antimatter Galaxy. Reward: Reduce starting tick interval by 2%."><br></div>
                        </td>
                        <td>
                            <div id="That's fast!" class="achievement achievementlocked" style="background-image: url(images/23.png)" ach-tooltip="Go infinite in under 2 hours. Reward: Start with 1000 antimatter and get a multiplier to galaxy points based on fastest infinity (5 hours / x, 10x softcap)."><br></div>
                        </td>
                        <td>
                            <div id="I don't believe in Gods" class="achievement achievementlocked" style="background-image: url(images/24.png)" ach-tooltip="Buy a Galaxy without Sacrificing."><br></div>
                        </td>
                    </tr>
                    <tr id="achRow4">
                        <td>
                            <div id="Spreading Cancer" class="achievement achievementlocked" style="background-image: url(images/46.png)" ach-tooltip="Buy ten Galaxies in total while using cancer notation. Reward: Multiplier to IP based on number of galaxies bought in cancer notation."><br></div>
                        </td>
                        <td>
                            <div id="Supersanic" class="achievement achievementlocked" style="background-image: url(images/26.png)" ach-tooltip="Have antimatter/sec exceed your current antimatter above 1 Tg (1e63)."><br></div>
                        </td>
                        <td>
                            <div id="Zero Deaths" class="achievement achievementlocked" style="background-image: url(images/27.png)" ach-tooltip="Get to Infinity without Dimension shifts, boosts or galaxies in a challenge. Reward: Dimensions 1-4 are 25% stronger and 100x to IP."><br></div>
                        </td>
                        <td>
                            <div id="Over in 30 seconds" class="achievement achievementlocked" style="background-image: url(images/28.png)" ach-tooltip="Have antimatter/sec exceed your current antimatter for 30 consecutive seconds."><br></div>
                        </td>
                        <td>
                            <div id="Faster than a potato" class="achievement achievementlocked" style="background-image: url(images/29.png)" ach-tooltip="Get more than 100 Sx (100e21) ticks per second. Reward: Reduces starting tick interval by 2%."><br></div>
                        </td>
                        <td>
                            <div id="Multidimensional" class="achievement achievementlocked" style="background-image: url(images/30.png)" ach-tooltip="Reach 1 Qd (1e12) of all dimensions except 8th. Multipler to ND based on log of dimensions."><br></div>
                        </td>
                        <td>
                            <div id="Daredevil" class="achievement achievementlocked" style="background-image: url(images/31.png)" ach-tooltip="Complete 2 challenges."><br></div>
                        </td>
                        <td>
                            <div id="AntiChallenged" class="achievement achievementlocked" style="background-image: url(images/32.png)" ach-tooltip="Complete all the challenges. Reward: All dimensions are 10% stronger and Galaxy Upgrade 11 affects tickspeed buyable."><br></div>
                        </td>
                    </tr>
                    <tr id="achRow5">
                        <td>
                            <div id="Limit Break" class="achievement achievementlocked" style="background-image: url(images/33.png)" ach-tooltip="Break Infinity. Reward: Multiplier to IP gain based on galaxies"><br></div>
                        </td>
                        <td>
                            <div id="Age of Automation" class="achievement achievementlocked" style="background-image: url(images/34.png)" ach-tooltip="Max any 9 autobuyers. Reward: Dimension Autobuyers buy Time Dimensions with antimatter."><br></div>
                        </td>
                        <td>
                            <div id="Definitely not worth it" class="achievement achievementlocked" style="background-image: url(images/35.png)" ach-tooltip="Max all the autobuyers."><br></div>
                        </td>
                        <td>
                            <div id="That's faster!" class="achievement achievementlocked" style="background-image: url(images/36.png)" ach-tooltip="Infinity in 10 minutes or less. Reward: Start with 200000 antimatter."><br></div>
                        </td>
                        <td>
                            <div id="Forever isn't that long" class="achievement achievementlocked" style="background-image: url(images/37.png)" ach-tooltip="Infinity in 1 minute or less. Reward: Start with 1e10 antimatter and multipler to IP based on fastest infinity time."><br></div>
                        </td>
                        <td>
                            <div id="Many Deaths" class="achievement achievementlocked" style="background-image: url(images/38.png)" ach-tooltip="Complete the Second Dimension Autobuyer challenge in 3 minutes or less. Reward: All dimensions are stronger in first 3 minutes of infinity."><br></div>
                        </td>
                        <td>
                            <div id="Gift from the Gods" class="achievement achievementlocked" style="background-image: url(images/39.png)" ach-tooltip="Complete the Eighth Dimension Autobuyer challenge in 3 minutes or less. Reward: Dimensional sacrifices are a lot stronger."><br></div>
                        </td>
                        <td>
                            <div id="Is this hell?" class="achievement achievementlocked" style="background-image: url(images/40.png)" ach-tooltip="Complete the Tickspeed Autobuyer challenge in 3 minutes or less. Reward: Boost per 10 dimensions is x^1.1."><br></div>
                        </td>
                    </tr>
                    <tr id="achRow6">
                        <td>
                            <div id="Bulked up" class="achievement achievementlocked" style="background-image: url(images/401.png)" ach-tooltip="Get all of your dimension bulk buyers to 512 or higher."><br></div>
                        </td>
                        <td>
                            <div id="Oh hey, you're still here" class="achievement achievementlocked" style="background-image: url(images/402.png)" ach-tooltip="Reach 1e8 IP per minute. Reward: Multiplier to GP and First Dilation Threshold based on log(IP)"><br></div>
                        </td>
                        <td>
                            <div id="A new beginning." class="achievement achievementlocked" style="background-image: url(images/403.png)" ach-tooltip="Begin generation of infinity power. Reward: Gain an Eternity Point."><br></div>
                        </td>
                        <td>
                            <div id="1 million is a lot" class="achievement achievementlocked" style="background-image: url(images/404.png)" ach-tooltip="Reach 1e6 infinity power. Reward: First Dimensions are 1e6 times stronger pre-dilation, and Third Dilation Threshold is multiplied by 1e6."><br></div>
                        </td>
                        <td>
                            <div id="Not-so-challenging" class="achievement achievementlocked" style="background-image: url(images/405.png)" ach-tooltip="Get the sum of all of your challenge times under 3 minutes. Reward: All dimensions are stronger in first 3 minutes of infinity, but only in challenges."><br></div>
                        </td>
                        <td>
                            <div id="Faster than a squared potato" class="achievement achievementlocked" style="background-image: url(images/406.png)" ach-tooltip="Reach 1e52 ticks per second. Reward: -2% tickspeed and multiplier to ID equal to the number of potato’s."><br></div>
                        </td>
                        <td>
                            <div id="Infinitely Challenging" class="achievement achievementlocked" style="background-image: url(images/407.png)" ach-tooltip="Complete an infinity challenge. Reward: Increase galaxy and g11 effectiveness based on IC's completed."><br></div>
                        </td>
                        <td>
                            <div id="You did this again just for the achievement right?" class="achievement achievementlocked" style="background-image: url(images/408.png)" ach-tooltip="Complete the Third Dimension Autobuyer challenge in 10 seconds or less. Reward: First dimensions are 5x stronger."><br></div>
                        </td>
                    </tr>
                    <tr id="achRow7">
                            <td>
                                <div id="ERROR 909: Dimension not found" class="achievement achievementlocked" style="background-image: url(images/41.png)" ach-tooltip="Get to infinity with only a single first Dimension without Dimension Boosts, Shifts or Galaxies while in Automatic Galaxies Challenge. Reward: First Dimensions are 1e909 times stronger pre-dilation."><br></div>
                            </td>
                            <td>
                                <div id="Can't hold all these infinities" class="achievement achievementlocked" style="background-image: url(images/42.png)" ach-tooltip="Get all Dimension multipliers over 1e308. Reward: All dimensions 10x stronger, and multiply fourth dilation threshold by 1e20."><br></div>
                            </td>
                            <td>
                                <div id="This achievement doesn't exist" class="achievement achievementlocked" style="background-image: url(images/43.png)" ach-tooltip="Get 9.9999e9999x tickspeed multiplier. Reward: Dimensions are more powerful the more unspent antimatter you have, and multiply fourth dilation threshold by 1e25."><br></div>
                            </td>
                            <td>
                                <div id="End me" class="achievement achievementlocked" style="background-image: url(images/44.png)" ach-tooltip="Get the sum of all best challenge times under 5 seconds. Reward: All dimensions 40x stronger, but only in challenges."><br></div>
                            </td>
                            <td>
                                <div id="NEW DIMENSIONS???" class="achievement achievementlocked" style="background-image: url(images/45.png)" ach-tooltip="Unlock the 4th Infinity Dimension. Reward: Your achievement bonus affects Infinity Dimensions, and each unlocked ID multiplies second dilation threshold by 100."><br></div>
                            </td>
                            <td>
                                <div id="One for each dimension" class="achievement achievementlocked" style="background-image: url(images/21.png)" ach-tooltip="Play for 8 days. Reward: Extremely small time multiplier."><br></div>
                            </td>
                            <td>
                                <div id="How the antitables have turned" class="achievement achievementlocked" style="background-image: url(images/47.png)" ach-tooltip="Get 8th Dimension multiplier to be highest, 7th Dimension multiplier second highest etc. Reward: Each dimension gains a boost proportional to tier (8th dimension gets 80%, 7th gets 70%, etc.)"><br></div>
                            </td>
                            <td>
                                <div id="Blink of an eye" class="achievement achievementlocked" style="background-image: url(images/48.gif)" ach-tooltip="Get to Infinity in under 200 milliseconds. Reward: Start with 1e25 antimatter and all dimensions are stronger in first 300ms of infinity."><br></div>
                            </td>
                        </tr>
                        <tr id="achRow8">
                            <td>
                                <div id="Hevipelle did nothing wrong" class="achievement achievementlocked" style="background-image: url(images/49.png)" ach-tooltip="Beat Infinity Challenge 7 in 10 seconds or less."><br></div>
                            </td>
                            <td>
                                <div id="Anti-antichallenged" class="achievement achievementlocked" style="background-image: url(images/50.png)" ach-tooltip="Complete 10 Infinity Challenges. Reward: Each completed IC multiplies third dilation threshold by 100."><br></div>
                            </td>
                            <td>
                                <div id="YOU CAN GET 50 GALAXIES!??" class="achievement achievementlocked" style="background-image: url(images/51.png)" ach-tooltip="Get 50 galaxies. Reward: Tickspeed is 5% lower per galaxy, reduce galaxy effect softcap to tickspeed. Distant, Further and Remote scaling starts 1 later."><br></div>
                            </td>
                            <td>
                                <div id="I got a few to spare" class="achievement achievementlocked" style="background-image: url(images/52.png)" ach-tooltip="Reach 1e35000 antimatter. Reward: Dimensions are more powerful the more unspent antimatter you have."><br></div>
                            </td>
                            <td>
                                <div id="All your IP are belong to us" class="achievement achievementlocked" style="background-image: url(images/53.png)" ach-tooltip="Big Crunch for 1e150 IP. Reward: Additional 4x multiplier to IP."><br></div>
                            </td>
                            <td>
                                <div id="Do you even bend time bro?" class="achievement achievementlocked" style="background-image: url(images/54.png)" ach-tooltip="Reach -99% tickspeed per upgrade. Reward: Galaxies are 5% more powerful."><br></div>
                            </td>
                            <td>
                                <div id="2 Million Infinities" class="achievement achievementlocked" style="background-image: url(images/55.png)" ach-tooltip="Infinity 2000000 times. Reward: Infinities more than 5 seconds long give 250 infinitied stat."><br></div>
                            </td>
                            <td>
                                <div id="Yet another infinity reference" class="achievement achievementlocked" style="background-image: url(images/56.png)" ach-tooltip="Get xInfinity multiplier in a single sacrifice. Reward: Sacrifices are stronger."><br></div>
                            </td>
                        </tr>
                        <tr id="achRow9">
                            <td>
                                <div id="Ludicrous Speed" class="achievement achievementlocked" style="background-image: url(images/57.png)" ach-tooltip="Big Crunch for 1e200 IP in 2 seconds or less. Reward: All dimensions are significantly stronger in first 5 seconds of infinity."><br></div>
                            </td>
                            <td>
                                <div id="I brake for nobody" class="achievement achievementlocked" style="background-image: url(images/58.png)" ach-tooltip="Big Crunch for 1e250 IP in 20 seconds or less. Reward: All dimensions are significantly stronger in first 60 seconds of infinity."><br></div>
                            </td>
                            <td>
                                <div id="MAXIMUM OVERDRIVE" class="achievement achievementlocked" style="background-image: url(images/59.png)" ach-tooltip="Reach 1e300 IP/min. Reward: Additional 4x multiplier to IP."><br></div>
                            </td>
                            <td>
                                <div id="Minute of infinity" class="achievement achievementlocked" style="background-image: url(images/60.png)" ach-tooltip="Reach 1e260 infinity power. Reward: Double infinity power gain."><br></div>
                            </td>
                            <td>
                                <div id="Is this safe?" class="achievement achievementlocked" style="background-image: url(images/61.png)" ach-tooltip="Gain Infinite replicanti in 30 minutes. Reward: Infinity doesn't reset your replicanti amount, and unlock 2 new Infinity Challenges."><br></div>
                            </td>
                            <td>
                                <div id="Time is relative" class="achievement achievementlocked" style="background-image: url(images/62.png)" ach-tooltip="Go Eternal. Reward: Gain more EP based on eternities, dilation effect is reduced, unlock more galaxy upgrades, multiply first dilation threshold by 10, multiply fourth dilation threshold by (EP+1), and the base of Break Infinity upgrade 'You gain more IP based on galaxies' is increased by 0.5."><br></div>
                            </td>
                            <td>
                                <div id="Yes. This is hell." class="achievement achievementlocked" style="background-image: url(images/63.png)" ach-tooltip="Get the sum of Infinity Challenge times under 6.66 seconds."><br></div>
                            </td>
                            <td>
                                <div id="0 degrees from infinity" class="achievement achievementlocked" style="background-image: url(images/64.png)" ach-tooltip="Unlock the 8th Infinity Dimension."><br></div>
                            </td>
                        </tr>
                        <tr id="achRow10">
                            <td>
                                <div id="Costco sells dimboosts now" class="achievement achievementlocked" style="background-image: url(images/65.png)" ach-tooltip="Bulk buy 750 dimension boosts at once. Reward: Dimension boosts are 1% more powerful (to normal dims)."><br></div>
                            </td>
                            <td>
                                <div id="This mile took an Eternity" class="achievement achievementlocked" style="background-image: url(images/66.png)" ach-tooltip="Get 100 eternities. Reward: Multiply your EP gain by (eternities+1) post-dilation."><br></div>
                            </td>
                            <td>
                                <div id="This achievement doesn't exist II" class="achievement achievementlocked" style="background-image: url(images/67.png)" ach-tooltip="Reach 9.99999e999 IP. Reward: Gain more IP based on amount of antimatter you had when crunching."><br></div>
                            </td>
                            <td>
                                <div id="That wasn't an eternity" class="achievement achievementlocked" style="background-image: url(images/68.png)" ach-tooltip="Eternity in under 1 minute. Reward: Start eternities with 2e25 IP, and gain 2e25x more IP."><br></div>
                            </td>
                            <td>
                                <div id="Infinite time" class="achievement achievementlocked" style="background-image: url(images/69.png)" ach-tooltip="Get 308 tickspeed upgrades (in one eternity) from time dimensions. Reward: Time dimensions are affected slightly more by tickspeed multiplier."><br></div>
                            </td>
                            <td>
                                <div id="The swarm" class="achievement achievementlocked" style="background-image: url(images/70.png)" ach-tooltip="Get 10 replicanti galaxies in 15 seconds. Reward: Multiply GP and IP gain by (10^replicanti galaxies)."><br></div>
                            </td>
                            <td>
                                <div id="Do you really need a guide for this?" class="achievement achievementlocked" style="background-image: url(images/71.png)" ach-tooltip="Eternity with the infinitied stat under 10. Reward: Multiplier to EP based on infinities in current eternity (post-dilation)."><br></div>
                            </td>
                            <td>
                                <div id="We could afford 9" class="achievement achievementlocked" style="background-image: url(images/72.png)" ach-tooltip="Eternity with exactly 9 replicanti. Reward: Multiplier to EP based on replicanti (post-dilation)."><br></div>
                            </td>
                        </tr>
                        <tr id="achRowngm4r">
                            <td>
                                <div id="Is time relative?" class="achievement achievementlocked" ach-tooltip="Go Timeless. Reward: TDs are not reset until eternity."><br>Is time relative?</div>
                            </td>
                            <td>
                                <div id="A day lost..." class="achievement achievementlocked" ach-tooltip="Reach 86400 Timeless Shards. Reward: Multiply Timeless Point gain by 24."><br>A day lost...</div>
                            </td>
                            <td>
                                <div id="Are you breaking dilation?" class="achievement achievementlocked" ach-tooltip="Reach a dilation effect of ^0.8. Reward: Reduce dilation effect."><br>Are you breaking dilation?</div>
                            </td>
                            <td>
                                <div id="Replicate Expertise" class="achievement achievementlocked" ach-tooltip="Reach 654% replicate chance. Reward: Uncap replicate chance, and replicate chance level boost replicanti limit."><br>Replicate Expertise</div>
                            </td>
                            <td>
                                <div id="Faster than a cubed eternal potato" class="achievement achievementlocked" ach-tooltip="Get 1e87 EP in a single eternity. Reward: Square the effect of 'The second row of Eternity Upgrades boost EP gain', and Unlock more galaxy upgrades."><br>Faster than a cubed eternal potato</div>
                            </td>
                            <td>
                                <div id="Meta-achievement" class="achievement achievementlocked" ach-tooltip="Get 100 normal achievements. Reward: Achievement power is (1.5^achievements), instead of (5^achievement rows)"><br>Meta-achievement</div>
                            </td>
                            <td>
                                <div class="achievement achievementlocked" ach-tooltip="[TBD]"><br>[TBD Post-Interreality NG-4R Achievement]</div>
                            </td>
                            <td>
                                <div id="But I wanted another prestige layer again..." class="achievement achievementlocked"><br>But I wanted another prestige layer again...</div>
                            </td>
                        </tr>
                        <tr id="achRow11">
                            <td>
                                <div id="Yo dawg, I heard you liked infinities..." class="achievement achievementlocked" style="background-image: url(images/73.png)" ach-tooltip="Have all your past 10 infinities be at least 1.79e308 times higher IP than the previous one. Reward: Your antimatter doesn't reset on dimboost/galaxy"><br></div>
                            </td>
                            <td>
                                <div id="Never again" class="achievement achievementlocked" style="background-image: url(images/74.png)" ach-tooltip="Max out your third Eternity upgrade. Reward: The limit is a bit higher."><br></div>
                            </td>
                            <td>
                                <div id="Long lasting relationship" class="achievement achievementlocked" style="background-image: url(images/75.png)" ach-tooltip="Have your Infinity power per second exceed your infinity power for 60 consecutive seconds during a single infinity."><br></div>
                            </td>
                            <td>
                                <div id="You're a mistake" class="achievement achievementlocked" style="background-image: url(images/76.png)" ach-tooltip="Fail an Eternity challenge. Reward: Each completed failable EC tiers multiply your EP gain by 10 post-dilation."><br></div>
                            </td>
                            <td>
                                <div id="I wish I had gotten 7 eternities" class="achievement achievementlocked" style="background-image: url(images/77.png)" ach-tooltip="Start an Infinity challenge inside an Eternity challenge. Reward: Boost Timeless Shard gain exponent based on EC tiers completed."><br></div>
                            </td>
                            <td>
                                <div id="Do I really need to infinity" class="achievement achievementlocked" style="background-image: url(images/78.png)" ach-tooltip="Eternity with only 1 infinity. Reward: Multiplier to IP based on infinities."><br></div>
                            </td>
                            <td>
                                <div id="8 nobody got time for that" class="achievement achievementlocked" style="background-image: url(images/79.png)" ach-tooltip="Eternity without buying dimensions 1-7. Reward: Boost Timeless Shard gain based on 8th dimensions bought."><br></div>
                            </td>
                            <td>
                                <div id="IT'S OVER 9000" class="achievement achievementlocked" style="background-image: url(images/80.png)" ach-tooltip="Get a total sacrifice multiplier of 1e9000. Reward: Sacrifice doesn't reset your dimensions."><br></div>
                            </td>
                        </tr>
                        <tr id="achRow12">
                            <td>
                                <div id="Can you get infinite IP?" class="achievement achievementlocked" style="background-image: url(images/81.png)" ach-tooltip="Reach 1e30008 IP."><br></div>
                            </td>
                            <td>
                                <div id="You're already dead." class="achievement achievementlocked" style="background-image: url(images/82.png)" ach-tooltip="Eternity without buying dimensions 2-8. Reward: Boost Timeless Shard gain based on 1st dimensions bought."><br></div>
                            </td>
                            <td>
                                <div id="5 more eternities until the update" class="achievement achievementlocked" style="background-image: url(images/83.png)" ach-tooltip="Complete 50 unique eternity challenge tiers."><br></div>
                            </td>
                            <td>
                                <div id="Eternities are the new infinity" class="achievement achievementlocked" style="background-image: url(images/84.png)" ach-tooltip="Eternity in under 200ms."><br></div>
                            </td>
                            <td>
                                <div id="Like feasting on a behind" class="achievement achievementlocked" style="background-image: url(images/85.png)" ach-tooltip="Get 1e100 IP without any infinities, dimensions, or resets (not including upgrades). Reward: IP multiplier based on time spent this infinity."><br></div>
                            </td>
                            <td>
                                <div id="Popular music" class="achievement achievementlocked" style="background-image: url(images/86.png)" ach-tooltip="Have 180 times more non-bonus replicanti galaxies than normal galaxies. Reward: Replicanti galaxies divide your replicanti by 1.79e308 instead of resetting them to 1."><br></div>
                            </td>
                            <td>
                                <div id="But I wanted another prestige layer..." class="achievement achievementlocked" style="background-image: url(images/87.png)" ach-tooltip="Reach 1e308 EP."><br></div>
                            </td>
                            <td>
                                <div id="What do I have to do to get rid of you" class="achievement achievementlocked" style="background-image: url(images/88.png)" ach-tooltip="Reach 1e22000 IP without any time studies. Reward: Time dimensions are multiplied by the number of studies you have."><br></div>
                            </td>
                        </tr>
                        <tr id="achRow13">
                            <td>
                                <div id="No ethical consumption" class="achievement achievementlocked" style="background-image: url(images/89.png)" ach-tooltip="Get 5 billion banked infinities. Reward: After eternity you permanently keep 5% of your infinities, and banked infinities boost TS53 and Timeless Shards."><br></div>
                            </td>
                            <td>
                                <div id="Unique snowflakes" class="achievement achievementlocked" style="background-image: url(images/90.png)" ach-tooltip="Have 540 galaxies without having any Replicated galaxies."><br></div>
                            </td>
                            <td>
                                <div id="I never liked this infinity stuff anyway" class="achievement achievementlocked" style="background-image: url(images/91.png)" ach-tooltip="Reach 1e140,000 IP without buying IDs or IP multipliers."><br></div>
                            </td>
                            <td>
                                <div id="When will it be enough?" class="achievement achievementlocked" style="background-image: url(images/92.png)" ach-tooltip="Reach 1e20,000 replicanti. Reward: You gain replicanti 2 times faster under 1.79e308 replicanti, and 8 times faster above 1.79e308 replicanti."><br></div>
                            </td>
                            <td>
                                <div id="Faster than a potato^286078" class="achievement achievementlocked" style="background-image: url(images/93.png)" ach-tooltip="Get more than 1e8,296,262 ticks per second."><br></div>
                            </td>
                            <td>
                                <div id="I told you already, time is relative" class="achievement achievementlocked" style="background-image: url(images/94.png)" ach-tooltip="Dilate time."><br></div>
                            </td>
                            <td>
                                <div id="Now you're thinking with dilation!" class="achievement achievementlocked" style="background-image: url(images/95.png)" ach-tooltip="Eternity for 1e600 EP in 1 minute or less while dilated."><br></div>
                            </td>
                            <td>
                                <div id="This is what I have to do to get rid of you." class="achievement achievementlocked" style="background-image: url(images/96.png)" ach-tooltip="Reach 1e20000 IP without any time studies while dilated."><br></div>
                            </td>
                        </tr>
                </table>
            </div>
            <div id="secretachievements" class="achtab" style="display:none;">
                <table id="secretachievementtable" style="margin: auto">
                    <tr id="secretAchRow1">
                        <td>
                            <div id="The first one's always free" class="achievement achievementlocked" style="background-image: url(images/s1.png)" ach-tooltip="The first one's always free."><br></div>
                        </td>
                        <td>
                            <div id="Just in case" class="achievement achievementlocked" style="background-image: url(images/s2.png)" ach-tooltip="Just in case."><br></div>
                        </td>
                        <td>
                            <div id="It pays to have respect" class="achievement achievementlocked" style="background-image: url(images/s3.png)" ach-tooltip="It pays to have respect."><br></div>
                        </td>
                        <td>
                            <div id="So do I" class="achievement achievementlocked" style="background-image: url(images/s4.png)" ach-tooltip="So do I."><br></div>
                        </td>
                        <td>
                            <div id="Do a barrel roll!" class="achievement achievementlocked" style="background-image: url(images/s5.png)" ach-tooltip="Do a barrel roll!"><br></div>
                        </td>
                        <td>
                            <div id="Do you enjoy pain?" class="achievement achievementlocked" style="background-image: url(images/s6.png)" ach-tooltip="Do you enjoy pain?"><br></div>
                        </td>
                        <td>
                            <div id="30 Lives" class="achievement achievementlocked" style="background-image: url(images/s7.png)" ach-tooltip="30 Lives."><br></div>
                        </td>
                        <td>
                            <div id="Do you feel lucky? Well do ya punk?" class="achievement achievementlocked" style="background-image: url(images/s8.png)" ach-tooltip="Do you feel lucky? Well do ya punk?"><br></div>
                        </td>
                    </tr>
                    <tr id="secretAchRow2">
                        <td>
                            <div id="Go study in real life instead" class="achievement achievementlocked" style="background-image: url(images/s9.png)" ach-tooltip="Go study in real life instead."><br></div>
                        </td>
                        <td>
                            <div id="Cancer = Spread" class="achievement achievementlocked" style="background-image: url(images/s10.png)" ach-tooltip="Cancer = Spread."><br></div>
                        </td>
                        <td>
                            <div id="Stop right there criminal scum!" class="achievement achievementlocked" style="background-image: url(images/s11.png)" ach-tooltip="Stop right there criminal scum!"><br></div>
                        </td>
                        <td>
                            <div id="Real news" class="achievement achievementlocked" style="background-image: url(images/s12.png)" ach-tooltip="Real news."><br></div>
                        </td>
                        <td>
                            <div id="Shhh... It's a secret" class="achievement achievementlocked" style="background-image: url(images/s13.png)" ach-tooltip="Shhh... It's a secret."><br></div>
                        </td>
                        <td>
                            <div id="You're a failure" class="achievement achievementlocked" style="background-image: url(images/s14.png)" ach-tooltip="You're a failure."><br></div>
                        </td>
                        <td>
                            <div id="It's not called matter dimensions is it?" class="achievement achievementlocked" style="background-image: url(images/s15.png)" ach-tooltip="It's not called matter dimensions is it?"><br></div>
                        </td>
                        <td>
                            <div id="Nice." class="achievement achievementlocked" style="background-image: url(images/s16.png)" ach-tooltip="Nice."><br></div>
                        </td>
                    </tr>
                    <tr id="secretAchRow3">
                        <td>
                            <div id="You should download some more RAM" class="achievement achievementlocked" style="background-image: url(images/s17.png)" ach-tooltip="You should download some more RAM."><br></div>
                        </td>
                        <td>
                            <div id="Less than or equal to 0.001" class="achievement achievementlocked" style="background-image: url(images/s18.png)" ach-tooltip="Less than or equal to 0.001."><br></div>
                        </td>
                        <td>
                            <div id="A sound financial decision" class="achievement achievementlocked" style="background-image: url(images/s19.png)" ach-tooltip="A sound financial decision."><br></div>
                        </td>
                        <td>
                            <div id="You do know how these work, right?" class="achievement achievementlocked" style="background-image: url(images/s20.png)" ach-tooltip="You do know how these work, right?"><br></div>
                        </td>
                        <td>
                            <div id="Should we tell them about buy max..." class="achievement achievementlocked" style="background-image: url(images/s21.png)" ach-tooltip="Should we tell them about buy max..."><br></div>
                        </td>
                        <td>
                            <div id="While you were away... Nothing happened." class="achievement achievementlocked" style="background-image: url(images/s22.png)" ach-tooltip="While you were away... Nothing happened."><br></div>
                        </td>
                        <td>
                            <div id="You followed the instructions" class="achievement achievementlocked" style="background-image: url(images/s23.png)" ach-tooltip="You followed the instructions."><br></div>
                        </td>
                        <td>
                            <div id="Professional bodybuilder" class="achievement achievementlocked" style="background-image: url(images/s24.png)" ach-tooltip="Professional bodybuilder."><br></div>
                        </td>
                    </tr>
                </table>
            </div>
            <div>
                <table id="footer">
                    <tr>
                        <td>
                            <div style="text-align:center">
                                <a href="howto.html" target="_newtab">How to play  </a> |
                                <a href="about.html" target="_newtab" onclick="giveAchievement('A sound financial decision')">Donate   </a> |
                                <a href="changelog.html" target="_newtab">Changelog   </a> |
                                <a href="https://discord.gg/ST9NaXa" target="_newtab">Discord</a> |
                                <a href="https://www.reddit.com/r/AntimatterDimensions/" target="_newtab">Subreddit</a>      |    <a href="https://ivark.github.io/savefixer/index.html" target="_newtab">Savefixer</a>

                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>



        <div id="challenges" class="tab">
            <br>
            <button class="storebtn" style="font-size: 100%; width:200px" onclick="exitChallenge()">Exit Challenge</button><br><br>
            <table class="table" align="center" style="margin: auto; display: none" id="challTabButtons">
                <tr>
                    <td><button class="secondarytabbtn" onclick="showChallengesTab('challenges')">Challenges</button></td>
                    <td><button class="secondarytabbtn" onclick="showChallengesTab('breakchallenges')">Infinity Challenges</button></td>
                    <td><button id="eterctabbtn" class="secondarytabbtn" onclick="showChallengesTab('eternitychallenges')">Eternity Challenges</button></td>
                </tr>
            </table>
            <div id="nextchall"></div>
            <div id="challenges" class="challengeTab">
                <table class="table" style="margin: 0 auto">
                    <tr>
                        <td>
                            <div class= "challengediv">
                                <span style="font-size: 110%">Reach infinity for the first time.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="challenge1" class="challengesbtn">Start</button>
                                    <br>
                                    <span>Reward: First Dimension autobuyer</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class= "challengediv">
                                <span style="font-size: 110%">Buying anything halts your production, gradually coming back over 3 minutes.</span>
                                <br>
                                <br>

                                <div class="outer">

                                    <button id="challenge2" class="challengesbtn">Start</button>
                                    <br>
                                    <span>Reward: Second Dimension autobuyer</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class= "challengediv">
                                <span style="font-size: 110%">First dimension is heavily weakened but gets an exponentially increasing bonus that resets on reset.</span>
                                <br>
                                <br>

                                <div class="outer">

                                    <button id="challenge3" class="challengesbtn">Start</button>
                                    <br>
                                    <span>Reward: Third Dimension autobuyer</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class= "challengediv">
                                <span style="font-size: 110%">Buying a dimension automatically erases all lower tier dimensions, like a sacrifice without the boost.</span>
                                <br>
                                <br>

                                <div class="outer">

                                    <button id="challenge8" class="challengesbtn">Start</button>
                                    <br>
                                    <span>Reward: Fourth Dimension autobuyer</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class= "challengediv">
                                <span style="font-size: 110%">Tickspeed upgrades start out useless, but galaxies make them stronger as usual.</span>
                                <br>
                                <br>

                                <div class="outer">

                                    <button id="challenge6" class="challengesbtn">Start</button>
                                    <br>
                                    <span>Reward: Fifth Dimension autobuyer</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class= "challengediv">
                                <span style="font-size: 110%">Each dimension costs the dimension 2 before it, with modified prices</span>
                                <br>
                                <br>

                                <div class="outer">

                                    <button id="challenge10" class="challengesbtn">Start</button>
                                    <br>
                                    <span>Reward: Sixth Dimension autobuyer</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class= "challengediv">
                                <span style="font-size: 110%">Multiplier per 10 dimensions is random from 0.30 and 10</span>
                                <br>
                                <br>

                                <div class="outer">

                                    <button id="challenge9" class="challengesbtn">Start</button>
                                    <br>
                                    <span>Reward: Seventh Dimension autobuyer</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class= "challengediv">
                                <span style="font-size: 110%">Dimension Boost and galaxies are useless, sacrifice resets everything but is immensely more powerful</span>
                                <br>
                                <br>

                                <div class="outer">

                                    <button id="challenge11" class="challengesbtn">Start</button>
                                    <br>
                                    <span>Reward: Eighth Dimension autobuyer</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class= "challengediv">
                                <span style="font-size: 110%">Whenever you buy 10 of a dimension or tickspeed, everything else of equal cost will increase to its next cost step.</span>
                                <br>
                                <br>

                                <div class="outer">

                                    <button id="challenge5" class="challengesbtn">Start</button>
                                    <br>
                                    <span>Reward: Tickspeed autobuyer</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class= "challengediv">
                                <span style="font-size: 110%">There are only 6 dimensions, with dimension boost costs modified and antimatter galaxy costs far higher.</span>
                                <br>
                                <br>

                                <div class="outer">

                                    <button id="challenge4" class="challengesbtn">Start</button>
                                    <br>
                                    <span>Reward: Automated Dimension Boosts</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class= "challengediv">
                                <span style="font-size: 110%">There's normal matter which rises. If it exceeds your antimatter, it will dimension boost without giving the bonus.</span>
                                <br>
                                <br>

                                <div class="outer">

                                    <button id="challenge12" class="challengesbtn">Start</button>
                                    <br>
                                    <span>Reward: Automated Galaxies</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class= "challengediv">
                                <span style="font-size: 110%">Each dimension produces the dimension 2 below it; first dimensions produce reduced antimatter. Galaxies are far more powerful. Each tickspeed upgrade multiply your tickrate by 1.001.</span>
                                <br>
                                <br>

                                <div class="outer">

                                    <button id="challenge7" class="challengesbtn">Start</button>
                                    <br>
                                    <span>Reward: Automated Big Crunches</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class= "challengediv">
                                <span style="font-size: 110%">Per-ten multiplier is always 1x, but product of dimensions bought multiplies all dimensions.</span>
                                <br>
                                <br>

                                <div class="outer">

                                    <button id="challenge13" class="challengesbtn">Start</button>
                                    <br>
                                    <span>Reward: Automated Dimensional Sacrifice</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class= "challengediv">
                                <span style="font-size: 110%">You can only get 308 tickspeed upgrades. This count does not reset on resets.</span>
                                <br>
                                <br>

                                <div class="outer">

                                    <button id="challenge14" class="challengesbtn">Start</button>
                                    <br>
                                    <span>Reward: Automated Galactic Sacrifice</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="breakchallenges" class="challengeTab">
                <table  class="table" style="margin: 0 auto">
                    <tr>
                        <td>
                            <div class="infchallengediv" id="postcngm3_1div" style="height: 140px">
                                <span>(IC NG-3-1) Multiplier per ten Dimensions is 1x, Dimension Boosts have no effect, Time Dimension costs when buying with antimatter are higher, Distant tickspeed boost scaling starts immediately.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postcngm3_1" class="challengesbtn" onclick="startChallenge('postcngm3_1', new Decimal('1e590'))">Start</button>
                                    <br>
                                    <span id="postcngm3_1goal" >Goal: 1e550</span><br>
                                    <span>Reward: Distant tickspeed boost scaling starts 10 tickspeed boost later.</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class="infchallengediv" id="postcngm3_2div" style="height: 140px">
                                <span>(IC NG-3-2) All Normal Dimension multipliers are disabled except for Infinity Power, but Galaxies and tickspeed boosts boost Infinity Power effect.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postcngm3_2" class="challengesbtn" onclick="startChallenge('postcngm3_2', new Decimal('1e500'))">Start</button>
                                    <br>
                                    <span id="postcngm3_2goal" >Goal: 1e550</span><br>
                                    <span>Reward: Galaxies and tickspeed boosts boost Infinity Power effect.</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="infchallengediv" id="postcngm3_3div" style="height: 140px">
                                <span>(IC NG-3-3) Automated Dimensional Sacrifice Challenge and Automated Big Crunches Challenge are applied at once. You can't get tickspeed upgrades. Time Dimension Boosts are useless.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postcngm3_3" class="challengesbtn" onclick="startChallenge('postcngm3_3', new Decimal('1e1500'))">Start</button>
                                    <br>
                                    <span id="postcngm3_3goal" >Goal: 1e550</span><br>
                                    <span>Reward: Product of dimensions bought multiplies all dimensions, Galaxy points boost Tickspeed Boosts and Time Dimension Boosts.</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class="infchallengediv" id="postcngm3_4div" style="height: 140px">
                                <span>(IC NG-3-4) All Galaxy upgrades that are based on Galaxy points are disabled.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postcngm3_4" class="challengesbtn" onclick="startChallenge('postcngm3_4', new Decimal('1e7500'))">Start</button>
                                    <br>
                                    <span id="postcngm3_4goal" >Goal: 1e550</span><br>
                                    <span>Reward: The Galaxy exponent boost to Galaxy points gain is buffed.</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="infchallengediv" id="postcngm4r_1div" style="height: 140px">
                                <span>(IC NG-4R-1) Automated Big Crunches Challenge, affects Normal and Time Dimensions. Even tiers of Normal and Time Dimensions are disabled.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postcngm4r_1" class="challengesbtn" onclick="startChallenge('postcngm4r_1', new Decimal('1e1200'))">Start</button>
                                    <br>
                                    <span id="postcngm4r_1goal" >Goal: 1e550</span><br>
                                    <span id="postcngm4r_1reward"></span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class="infchallengediv" id="postcngm4r_2div" style="height: 140px">
                                <span>(IC NG-4R-2) All Normal Dimension multipliers are disabled except for product of bought, but product of bought is raised ^15.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postcngm4r_2" class="challengesbtn" onclick="startChallenge('postcngm4r_2', new Decimal('1e1000'))">Start</button>
                                    <br>
                                    <span id="postcngm4r_2goal" >Goal: 1e550</span><br>
                                    <span>Reward: Product of bought is raised ^15, Galaxy Upgrade 35's effect ^100</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr id="replicantiICrow" style="display:none">
                        <td>
                            <div class="infchallengediv" id="postcngm4r_3div" style="height: 140px">
                                <span>(IC NG-4R-3) Replicanti does not grow, and is set to 1. Replicanti galaxies are cleared.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postcngm4r_3" class="challengesbtn" onclick="startChallenge('postcngm4r_3', new Decimal('1e19500'))">Start</button>
                                    <br>
                                    <span id="postcngm4r_3goal" >Goal: 1e550</span><br>
                                    <span>Reward: log10(replicanti+1)^5 boost IP gain.</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class="infchallengediv" id="postcngm4r_4div" style="height: 140px">
                                <span>(IC NG-4R-4) Distant, Further, Remote, and Dark Matter galaxy scaling are applied instantly.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postcngm4r_4" class="challengesbtn" onclick="startChallenge('postcngm4r_4', new Decimal('1e30000'))">Start</button>
                                    <br>
                                    <span id="postcngm4r_4goal" >Goal: 1e550</span><br>
                                    <span>Reward: Remote galaxy scaling is 10% weaker.</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="infchallengediv" id="postc1div" style="height: 140px; display: none">
                                <span>No reductions on galaxy and dimboost cost increases, but infinity upgrades based on time or infinities are applied post-dilation.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postc1" class="challengesbtn" onclick="startChallenge('postc1', new Decimal('1e650'))">Start</button>
                                    <br>
                                    <span id="postc1goal" >Goal: 1e550</span><br>
                                    <span>Reward: Infinity upgrades based on time or infinities are applied post-dilation. Also make the GP formula better based on galaxies. Unlock a new row of Galaxy upgrades.</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class="infchallengediv" id="postc2div" style="height: 140px; display: none">
                                <span>Dimension and tickspeed cost multiplier increases start immediately, but are square-rooted.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postc2" class="challengesbtn" onclick="startChallenge('postc2', new Decimal('1e650'))">Start</button>
                                    <br>
                                    <span id="postc2goal" >Goal: 1e950</span><br>
                                    <span>Reward: Cost multiplier increases are x^.9, and tickspeed cost multiplier increase is further lowered based on galaxies.</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="infchallengediv" id="postc3div" style="height: 140px; display: none">
                                <span>Tickspeed multiplier to dimensions is always at 1x, but every tickspeed purchase decreases tickspeed based on galaxies.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postc3" class="challengesbtn" onclick="startChallenge('postc3', new Decimal('1e610'))">Start</button>
                                    <br>
                                    <span id="postc3goal" >Goal: 1e1200</span><br>
                                    <span>Reward: Every tickspeed purchase decreases tickspeed based on galaxies</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class="infchallengediv" id="postc4div" style="height: 140px; display: none">
                                <span>All normal challenges (except tickspeed challenge, automatic big crunch challenge, and automatic galactic sacrifice challenge) at once. Second Dimension Autobuyer Challenge affects first dilation threshold at an increased rate.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postc4" class="challengesbtn" onclick="startChallenge('postc4', Number.MAX_VALUE)">Start</button>
                                    <br>
                                    <span id="postc4goal" >Goal: 1e650</span><br>
                                    <span>Reward: 2x on all Infinity Dimensions and first dilation threshold for each Infinity Challenge completed</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="infchallengediv" id="postc5div" style="height: 140px; display: none">
                                <span>Automatically sacrifice every 8 ticks once you have 8th Dimension.<br>Tip: Don't try to do this if you can't reach the target even in normal runs!</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postc5" class="challengesbtn" onclick="startChallenge('postc5', new Decimal('1e3000'))">Start</button>
                                    <br>
                                    <span id="postc5goal" >Goal: 1e10500</span><br>
                                    <span>Reward: More powerful sacrifice</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class="infchallengediv" id="postc6div" style="height: 140px; display: none">
                                <span>All Normal Dimension multipliers are square rooted after dilation.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postc6" class="challengesbtn" onclick="startChallenge('postc6', new Decimal('1e2300'))">Start</button>
                                    <br>
                                    <span id="postc6goal" >Goal: 1e13000</span><br>
                                    <span>Reward: All normal dimension multipliers become multiplier^1.05 before dilation.</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="infchallengediv" id="postc7div" style="height: 140px; display: none">
                                <span>You can't get tickspeed upgrades and galaxies.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postc7" class="challengesbtn" onclick="startChallenge('postc7', new Decimal('1e2200'))">Start</button>
                                    <br>
                                    <span id="postc7goal" >Goal: 1e11111</span><br>
                                    <span>Reward: Galaxies are 15% more powerful and reduce the requirements for them and dimensional boosts by 11. Tickspeed multiplier to dimensions is squared. Further Tickspeed Boost scaling starts 10 later. Distant Antimatter Galaxy scaling starts 5 later.</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class="infchallengediv" id="postc8div" style="height: 140px; display: none">
                                <span>There's an exponentially rising matter that divides the multiplier on all of your dimensions. Matter affects second dilation threshold.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="postc8" class="challengesbtn" onclick="startChallenge('postc8', new Decimal('1e5000'))">Start</button>
                                    <br>
                                    <span id="postc8goal" >Goal: 2e22222</span><br>
                                    <span>Reward: Tickspeed affects Infinity Dimensions. Tickspeed affects second dilation threshold at a reduced rate.</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                            <td>
                                <div class="infchallengediv" id="postc9div" style="height: 140px; display: none">
                                    <span>You can't get antimatter Galaxies, but dimensional boost multiplier is cubed</span>
                                    <br>
                                    <br>
                                    <div class="outer">
                                        <button id="postc9" class="challengesbtn" onclick="startChallenge('postc9', new Decimal('1e3200'))">Start</button>
                                        <br>
                                        <span id="postc9goal" >Goal: 1e15000</span><br>
                                        <span>Reward: Dimensional boost multiplier is cubed, and reduce dimensional boost increase by 1</span>
                                    </div>
                                </div>
                            </td>
                            <td>
                                <div class="infchallengediv" id="postc10div" style="height: 140px; display: none">
                                    <span>Your production is at 100% after purchasing anything, after that it rapidly drops down. This challenge's effect affects third dilation threshold.</span>
                                    <br>
                                    <br>
                                    <div class="outer">
                                        <button id="postc10" class="challengesbtn" onclick="startChallenge('postc10', new Decimal('1e7500'))">Start</button>
                                        <br>
                                        <span id="postc10goal" >Goal: 1e27000</span><br>
                                        <span>Reward: You get a multiplier to dimensions 2-7 based on 1st and 8th dimension multipliers, and multiply third dilation threshold by 1e10.</span>
                                    </div>
                                </div>
                            </td>
                        </tr>
                </table>

            </div>
            <div id="eternitychallenges" class="challengeTab">
                <div>Complete Eternity Challenges again for a bigger reward, maximum of 5 times.<br>EC order tip in NG-4R: 1,2,3,4,6,7,8,5,9,10,11,12(Endgame: complete EC12x1 and Infinity EP)<br>Spoiler: Interreality is the next layer in NG-2 and NG-4R.<br>In NG-4R, Interreality is unlocked at Infinity EP, and if you want to Interreality, you need to complete EC12x1 (instead of EC10x1 in NG-2).</div>
                <table  class="table" style="margin: 0 auto">
                    <tr>
                        <td>
                            <div class="eterchallengediv" id="eterc1div" style="height: 140px; display: none">
                                <span>Time Dimensions are disabled.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="eterc1" class="challengesbtn" onclick="startEternityChallenge('eterc1', new Decimal('1e2675'), new Decimal('1e400'))">Start</button>
                                    <br>
                                    <span id="eterc1completed">Completed 0 Times.</span><br>
                                    <span id="eterc1goal" >Goal: 1e2000 IP</span><br>
                                    <span id="ec1reward">Reward: Xx on all Time Dimensions (based on time spent this Eternity)</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class="eterchallengediv" id="eterc2div" style="height: 140px; display: none">
                                <span>Infinity Dimensions are disabled.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="eterc2" class="challengesbtn" onclick="startEternityChallenge('eterc2', new Decimal('1e1125'), new Decimal('1e175'))">Start</button>
                                    <br>
                                    <span id="eterc2completed">Completed 0 Times.</span><br>
                                    <span id="eterc2goal" >Goal: 1e1800 IP</span><br>
                                    <span id="ec2reward">Reward: idk lol</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="eterchallengediv" id="eterc3div" style="height: 140px; display: none">
                                <span>Dimensions 5-8 don't produce anything. Dimensional sacrifice is disabled.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="eterc3" class="challengesbtn" onclick="startEternityChallenge('eterc3', new Decimal('1e1025'), new Decimal('1e100'))">Start</button>
                                    <br>
                                    <span id="eterc3completed">Completed 0 Times.</span><br>
                                    <span id="eterc3goal" >Goal: 1e1375 IP</span><br>
                                    <span id="ec3reward">Reward: idk lol</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class="eterchallengediv" id="eterc4div" style="height: 140px; display: none">
                                <span>All infinitied stat multipliers and generators are disabled.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="eterc4" class="challengesbtn" onclick="startEternityChallenge('eterc4', new Decimal('1e4000'), new Decimal('1e850'))">Start</button>
                                    <br>
                                    <span id="eterc4completed">Completed 0 Times.</span><br>
                                    <span id="eterc4goal" >Goal: 1e4250 IP in 20 infinities</span><br>
                                    <span id="ec4reward">Reward: Infinity Dimension multiplier from unspent IP</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="eterchallengediv" id="eterc5div" style="height: 140px; display: none">
                                <span>Distant, Further, Remote, and Dark Matter galaxy scaling are applied instantly, and 5x stronger. Dimension boost costs scaling is massively increased.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="eterc5" class="challengesbtn" onclick="startEternityChallenge('eterc5', new Decimal('1e600'), new Decimal('1e300'))">Start</button>
                                    <br>
                                    <span id="eterc5completed">Completed 0 Times.</span><br>
                                    <span id="eterc5goal" >Goal: 1e3000 IP</span><br>
                                    <span id="ec5reward">Reward: Galaxy cost scaling starts 10 galaxies later</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class="eterchallengediv" id="eterc6div" style="height: 140px; display: none">
                                <span>You can't gain galaxies normally, but the cost of upgrading your max replicanti galaxies is massively reduced.
                                </span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="eterc6" class="challengesbtn" onclick="startEternityChallenge('eterc6', new Decimal('1e850'), new Decimal('1e225'))">Start</button>
                                    <br>
                                    <span id="eterc6completed">Completed 0 Times.</span><br>
                                    <span id="eterc6goal" >Goal: 1e1500</span><br>
                                    <span id="ec6reward">Reward: Further reduction dimension cost multiplier increase, Current: 3x</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="eterchallengediv" id="eterc7div" style="height: 140px; display: none">
                                <span>First Time Dimension produces Eighth Infinity Dimension, and First Infinity Dimension produces Seventh Dimensions. Production of First Time Dimension ^0.1</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="eterc7" class="challengesbtn" onclick="startEternityChallenge('eterc7', new Decimal('1e1450'), new Decimal('1e300'))">Start</button>
                                    <br>
                                    <span id="eterc7completed">Completed 0 Times.</span><br>
                                    <span id="eterc7goal" >Goal: 1e2700 IP</span><br>
                                    <span id="ec7reward">Reward: Infinity Dimension multiplier based on time shards, Current: 0x</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class="eterchallengediv" id="eterc8div" style="height: 140px; display: none">
                                <span>You can only upgrade Infinity Dimensions 50 times, and Replicanti upgrades 40 times.
                                </span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="eterc8" class="challengesbtn" onclick="startEternityChallenge('eterc8', new Decimal('1e2100'), new Decimal('1e500'))">Start</button>
                                    <br>
                                    <span id="eterc8completed">Completed 0 Times.</span><br>
                                    <span id="eterc8goal" >Goal: 1e1150</span><br>
                                    <span id="ec8reward">Reward: dunno</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="eterchallengediv" id="eterc9div" style="height: 140px; display: none">
                                <span>You can't buy tickspeed upgrades. Infinity power instead multiplies time dimensions with greatly reduced effect.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="eterc9" class="challengesbtn" onclick="startEternityChallenge('eterc9', new Decimal('1e2250'), new Decimal('1e300'))">Start</button>
                                    <br>
                                    <span id="eterc9completed">Completed 0 Times.</span><br>
                                    <span id="eterc9goal" >Goal: 1e400 IP</span><br>
                                    <span id="ec9reward">Reward: something good I hope</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class="eterchallengediv" id="eterc10div" style="height: 140px; display: none">
                                <span>Time Dimensions and Infinity Dimensions are disabled, You gain an immense boost from infinitied stat to normal dimensions (post-dilation)<br>
                                    Currently: <span id="ec10span">xX</span>
                                </span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="eterc10" class="challengesbtn" onclick="startEternityChallenge('eterc10', new Decimal('1e5000'), new Decimal('1e500'))">Start</button>
                                    <br>
                                    <span id="eterc10completed">Completed 0 Times.</span><br>
                                    <span id="eterc10goal" >Goal: 1e1500</span><br>
                                    <span id="ec10reward">Reward: dunno</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="eterchallengediv" id="eterc11div" style="height: 140px; display: none">
                                <span>All dimension multipliers are disabled except for the multipliers from Infinity power and dimension boosts (to normal dimensions)</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="eterc11" class="challengesbtn" onclick="startEternityChallenge('eterc11', new Decimal('1e500'), new Decimal('1e200'))">Start</button>
                                    <br>
                                    <span id="eterc11completed">Completed 0 Times.</span><br>
                                    <span id="eterc11goal" >Goal: 1e400 IP</span><br>
                                    <span id="ec11reward">Reward: something good I hope</span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class="eterchallengediv" id="eterc12div" style="height: 140px; display: none">
                                <span>The game runs 1000x slower.</span>
                                <br>
                                <br>
                                <div class="outer">
                                    <button id="eterc12" class="challengesbtn" onclick="startEternityChallenge('eterc12', new Decimal('1e150000'), new Decimal('1e20000'))">Start</button>
                                    <br>
                                    <span id="eterc12completed">Completed 0 Times.</span><br>
                                    <span id="eterc12goal" >Goal: 1e110000 in 0.5 seconds or less.</span><br>
                                    <span id="ec12reward">Reward: Infinity Dimension cost multipliers are reduced. (x^1)</span>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
            <table id="footer">
                <tr>
                    <td>
                        <div style="text-align:center">
                            <a href="howto.html" target="_newtab">How to play  </a> |
                            <a href="about.html" target="_newtab" onclick="giveAchievement('A sound financial decision')">Donate   </a> |
                            <a href="changelog.html" target="_newtab">Changelog   </a> |
                            <a href="https://discord.gg/ST9NaXa" target="_newtab">Discord</a> |
                            <a href="https://www.reddit.com/r/AntimatterDimensions/" target="_newtab">Subreddit</a>      |    <a href="https://ivark.github.io/savefixer/index.html" target="_newtab">Savefixer</a>
                        </div>
                    </td>
                </tr>
            </table>
        </div>

        <div id="galaxy" class="tab" align="center" style="display: none">
            <br>
            <div id="galaxyPoints" style="color: #4169E1; font-size: 15px; width: 40%; margin: 0 auto">You have x galaxy points.</div>
	        <br>
			<table class="table" style="margin: 0 auto">
				<tr>
				    <td>
                <button id="galaxy11" class="infinistorebtn1" onclick="buyGalaxyUpgrade(11)">Normal dimensions are cheaper based on infinitied stat<br>Currently: <span id='galspan11'>x</span>x<br>Cost: 1 GP</button>
            </td>
            <td>
                <button id="galaxy12" class="infinistorebtn2" onclick="buyGalaxyUpgrade(12)">Multiplier to dimensions based on time since last galactic sacrifice<br>Currently: <span id='galspan12'>x</span>x<br>Cost: 3 GP</button>
            </td>
            <td>
                <button id="galaxy13" class="infinistorebtn3" onclick="buyGalaxyUpgrade(13)">Multiplier to dimensions based on galaxy points<br>Currently: <span id='galspan13'>x</span>x<br>Cost: 20 GP</button>
            </td>
            <td>
                <button id="galaxy14" class="infinistorebtn4" onclick="buyGalaxyUpgrade(14)"></button>
            </td>
            <td>
                <button id="galaxy15" class="infinistorebtn4" onclick="buyGalaxyUpgrade(15)"></button>
            </td>
				</tr>
        <tr>
				    <td>
                <button id="galaxy21" class="infinistorebtn1" onclick="buyGalaxyUpgrade(21)">Boost cost increase is 5 eighth dimensions, and starts scaling 2 boosts later<br>Cost: 1 GP</button>
            </td>
            <td>
                <button id="galaxy22" style="font-size:8px" class="infinistorebtn2" onclick="buyGalaxyUpgrade(22)">Galaxy buffs:<br>2x stronger<br>Reduced cost by 30 except for first one<br>Cost scalling reduced to 50<br>Cost: 5 GP</button>
            </td>
            <td>
                <button id="galaxy23" class="infinistorebtn3" onclick="buyGalaxyUpgrade(23)">Normal Dimension Boosts are stronger based on galaxy points<br>Currently: <span id='galspan23'>x</span>x<br>Cost: 100 GP</button>
            </td>
            <td>
                <button id="galaxy24" class="infinistorebtn4" onclick="buyGalaxyUpgrade(24)">Normal and Time Dimensions gain a multiplier based on product of Normal Dimensions bought.<br>Currently: <span id='galspan24'>x</span>x<br>Cost: <span id='galcost24'></span> GP</button>
            </td>
            <td>
                <button id="galaxy25" class="infinistorebtn4" onclick="buyGalaxyUpgrade(25)">'Infinite Time' is 1.5x stronger.<br>Cost: <span id='galcost25'></span> GP</button>
            </td>
				</tr>
        <tr>
				    <td>
                <button id="galaxy31" class="infinistorebtn1" onclick="buyGalaxyUpgrade(31)">Normal Dimension multipliers are increased before dilation.<br>Currently: x^<span id='galspan31'>x</span></br>Cost: 2 GP</button>
            </td>
            <td>
                <button id="galaxy32" class="infinistorebtn2" onclick="buyGalaxyUpgrade(32)">Multiplier to galactic sacrifice based on total antimatter<br>Currently: <span id='galspan32'>x</span>x<br>Cost: 8 GP</button>
            </td>
            <td>
                <button id="galaxy33" class="infinistorebtn3" onclick="buyGalaxyUpgrade(33)">Per-ten multiplier is stronger based on galaxy points<br>Currently: <span id='galspan33'>x</span>x<br>Cost: <span id='galcost33'>1000</span> GP</button>
            </td>
            <td>
                <button id="galaxy34" class="infinistorebtn4" onclick="buyGalaxyUpgrade(34)">Decrease tickspeed boost cost multiplier to 9.<br>Cost: <span id='galcost34'></span> GP</button>
            </td>
            <td>
                <button id="galaxy35" class="infinistorebtn4" onclick="buyGalaxyUpgrade(35)">Normal and Time Dimensions gain a multiplier based on product of Time Dimensions bought.<br>Currently: <span id='galspan35'>x</span>x<br>Cost: <span id='galcost35'></span> GP</button>
            </td>
				</tr>
	<tr id="newgalrow1">
				    <td>
                <button id="galaxy41" class="infinistorebtn1" onclick="buyGalaxyUpgrade(41)">Tickspeed boosts boost GP gain.<br>Currently: <span id='galspan41'>x</span>x<br>Cost: <span id='galcost41'>1e1650</span> GP</button>
            </td>
            <td>
                <button id="galaxy42" class="infinistorebtn2" onclick="buyGalaxyUpgrade(42)">Galaxy Upgrade 12 is boosted, and applied post-dilation.<br>Cost: <span id='galcost42'>1e2250</span> GP</button>
            </td>
            <td>
                <button id="galaxy43" class="infinistorebtn3" onclick="buyGalaxyUpgrade(43)">Reduce Dimension Boost cost multiplier by 1, and Galaxy points boost Time Dimensions.<br>Currently: <span id='galspan43'>?</span>x<br>Cost: <span id='galcost43'>1e3600</span> GP</button>
            </td>
            <td>
                <button id="galaxy44" class="infinistorebtn4" onclick="buyGalaxyUpgrade(44)">Reduce dilation effect based on normal galaxies.<br>Currently: <span id='galspan44'>?</span><br>Cost: <span id='galcost44'>1e3600</span> GP</button>
            </td>
            <td>
                <button id="galaxy45" class="infinistorebtn4" onclick="buyGalaxyUpgrade(45)">Galaxy points boost Infinity point gain<br>Currently: <span id='galspan45'>?</span>x<br>Cost: <span id='galcost45'>1e3600</span> GP</button>
            </td>
				</tr>
	<tr id="newgalrow2">
				    <td>
                <button id="galaxy51" class="infinistorebtn1" onclick="buyGalaxyUpgrade(51)">GP divide replicanti interval.<br>Currently: /<span id='galspan51'>?</span><br>Cost: <span id='galcost51'>1e4500</span> GP</button>
            </td>
            <td>
                <button id="galaxy52" class="infinistorebtn2" onclick="buyGalaxyUpgrade(52)"><span id='galspan62'>?</span> multiply third dilation threshold.<br>Currently: <span id='galspan52'>?</span>x<br>Cost: <span id='galcost52'>1e5500</span> GP</button>
            </td>
            <td>
                <button id="galaxy53" class="infinistorebtn3" onclick="buyGalaxyUpgrade(53)">Increase 2x IP mults based on GP<br>Cost: <span id='galcost53'>1e15000</span> GP</button>
            </td>
            <td>
                <button id="galaxy54" class="infinistorebtn4" onclick="buyGalaxyUpgrade(54)">Galaxy exponent to GP gain is doubled.<br>Cost: <span id='galcost54'>1e15000</span> GP</button>
            </td>
            <td>
                <button id="galaxy55" class="infinistorebtn4" onclick="buyGalaxyUpgrade(55)">Increase replicanti effect to dilation effect.<br>Currently: <span id='galspan55'>?</span><br>Cost: <span id='galcost55'>1e15000</span> GP</button>
            </td>
				</tr>
	<tr id="newgalrow3">
				    <td>
                <button id="galaxy61" class="infinistorebtn1" onclick="buyGalaxyUpgrade(61)">Multiplier to EP based on GP<br>Currently: <span id='galspan61'>?</span>x<br>Cost: <span id='galcost61'>1e4500</span> GP</button>
            </td>
            <td>
                <button id="galaxy62" class="infinistorebtn2" onclick="buyGalaxyUpgrade(62)">Boost the upgrade above, and boost Galaxy exponent to GP gain based on replicanti galaxies.<br>Cost: <span id='galcost62'>1e5500</span> GP</button>
            </td>
            <td>
                <button id="galaxy63" class="infinistorebtn3" onclick="buyGalaxyUpgrade(63)">Reduce TD antimatter costs based on bought TDs with EP<br>Currently: /<span id='galspan63'>?</span><br>Cost: <span id='galcost63'>1e15000</span> GP</button>
            </td>
            <td>
                <button id="galaxy64" class="infinistorebtn4" onclick="buyGalaxyUpgrade(64)">Tickspeed boosts multiply second dilation threshold and GP gain.<br>Currently: <span id='galspan64'>?</span>x<br>Cost: <span id='galcost64'>1e15000</span> GP</button>
            </td>
            <td>
                <button id="galaxy65" class="infinistorebtn4" onclick="buyGalaxyUpgrade(65)">Effect of Break Infinity Upgrade 'The multiplier for buying Infinity Dimensions are X' is <span id='galspan65'>?</span><br>Cost: <span id='galcost65'>1e15000</span> GP</button>
            </td>
				</tr>
	<tr id="newgalrow4">
				    <td>
                <button id="galaxy71" class="infinistorebtn1" onclick="buyGalaxyUpgrade(71)">Timestudy 21 use multiplication instead of addition, and base replicanti effect formula is better<br>Cost: <span id='galcost71'>1e4500</span> GP</button>
            </td>
				    <td>
                <button id="galaxy72" class="infinistorebtn2" onclick="buyGalaxyUpgrade(72)">Timestudy 41's formula is better<br>Cost: <span id='galcost72'>1e4500</span> GP</button>
            </td>
				    <td>
                <button id="galaxy73" class="infinistorebtn3" onclick="buyGalaxyUpgrade(73)">Boost the upgrade above<br>Cost: <span id='galcost73'>1e4500</span> GP</button>
            </td>
				    <td>
                <button id="galaxy74" class="infinistorebtn4" onclick="buyGalaxyUpgrade(74)">Effect of the upgrade above ^<span id='galspan74'>3</span>, and the upgrade above affects IP gain<br>Cost: <span id='galcost74'>1e4500</span> GP</button>
            </td>
				    <td>
                <button id="galaxy75" class="infinistorebtn4" onclick="buyGalaxyUpgrade(75)">GP boost Timeless shards<br>Currently: <span id='galspan75'>?</span>x<br>Cost: <span id='galcost75'>1e4500</span> GP</button>
            </td>
				</tr>
	<tr id="newgalrow5">
				    <td>
                <button id="galaxy81" class="infinistorebtn1" onclick="buyGalaxyUpgrade(81)">Change g11 to 'ND multiplier post-dilation based on infinitied', and g11 is unhardcapped. Dimension cost multiplier increase is square rooted. Buying this upgrade force a galactic sacrifice.<br>Cost: <span id='galcost81'>1e4500</span> GP</button>
            </td>
				    <td>
                <button id="galaxy82" class="infinistorebtn2" onclick="buyGalaxyUpgrade(82)">Reduce galaxy effect softcap to tickspeed.<br>Cost: <span id='galcost82'>1e4500</span> GP</button>
            </td>
				    <td>
                <button id="galaxy83" class="infinistorebtn3" onclick="buyGalaxyUpgrade(83)">Reduce galaxy effect softcap to tickspeed.<br>Cost: <span id='galcost83'>1e4500</span> GP</button>
            </td>
				    <td>
                <button id="galaxy84" class="infinistorebtn4" onclick="buyGalaxyUpgrade(84)">Boost the upgrade above<br>Cost: <span id='galcost84'>1e4500</span> GP</button>
            </td>
				</tr>

			</table>
        </div>


        <div id="infinity" class="tab" align="center" style="display: none">
            <br>
            <div id="infinityPoints1" style="color: black; font-size: 15px; width: 40%; margin: 0 auto">You have made x Infinity points.</div>
            <br>
            <tr>
                <td><button class="secondarytabbtn" onclick="showInfTab('preinf')">Upgrades</button><td>
                <td><button class="secondarytabbtn" onclick="showInfTab('autobuyers')">Autobuyers</button><td>
                <td><button id="postinfbtn" class="secondarytabbtn" onclick="showInfTab('postinf')" >Break Infinity</button><td>
                <td><button id="replicantitabbtn" class="secondarytabbtn" onclick="showInfTab('replicantis')">Replicantis</button><td>
            </tr>
            <div id="preinf" class="inftab">
            <br>
            <table class="table" style="margin: 0 auto">
                <tr>
                    <td>
                        <button id="infi11" class="infinistorebtn1">Production increase over time <br>currently:</button>
                    </td>
                    <td>
                        <button id="infi21" class="infinistorebtn2">Increase the multiplier for buying 10 Dimensions <br>2x -> 2.1x<br>Cost: 1 IP</button>
                    </td>
                    <td>
                        <button id="infi31" class="infinistorebtn3">Production increase over time in current infinity<br>Cost: 3 IP</button>
                    </td>
                    <td>
                        <button id="infi41" class="infinistorebtn4" style="font-size: 80%">You start with 1 Dimension Shifts/Boost, 2 Tickspeed Boosts and 2 Time Dimension Shifts/Boosts. Tickspeed Boosts don't reset Time Dimension Boosts.<br>Cost: 20 IP</button>
                    </td>
                </tr>
                <tr>
                    <td>
                        <button id="infi12" class="infinistorebtn1">First and Eighth Dimension power <br>xx</button>
                    </td>
                    <td>
                        <button id="infi22" class="infinistorebtn2">Second and Seventh Dimension power <br>xx</button>
                    </td>
                    <td>
                        <button id="infi32" class="infinistorebtn3">Bonus per unspent Infinity Point <br>xx</button>
                    </td>
                    <td>
                        <button id="infi42" class="infinistorebtn4" style="font-size: 80%">You start with 2 Dimension Shifts/Boosts, 4 Tickspeed Boosts and 4 Time Dimension Shifts/Boosts. Tickspeed Boosts don't reset Dimension Boosts.<br>Cost: 40 IP</button>
                    </td>
                </tr>
                <tr>
                    <td>
                        <button id="infi13" class="infinistorebtn1">Third and Sixth Dimension power <br>xx</button>
                    </td>
                    <td>
                        <button id="infi23" class="infinistorebtn2">Fourth and Fifth Dimension power <br>xx</button>
                    </td>
                    <td>
                        <button id="infi33" class="infinistorebtn3">Multiplier for each dimension boost <br>2x -> 2.5x<br>Cost: 7 IP</button>
                    </td>
                    <td>
                        <button id="infi43" class="infinistorebtn4" style="font-size: 80%">You start with 3 Dimension Shifts/Boosts, 8 Tickspeed Boosts and 8 Time Dimension Shifts/Boosts. Time Dimension Boosts don't reset anything and is autoed.<br>Cost: 80 IP</button>
                    </td>
                </tr>
                <tr>
                    <td>
                        <button id="infi14" class="infinistorebtn1">Decrease the number of Dimensions needed for Dimensional Boosts and galaxies by 9<br>Cost: 1 IP</button>
                    </td>
                    <td>
                        <button id="infi24" class="infinistorebtn2">Antimatter Galaxies are twice as effective<br>Cost: 2 IP</button>
                    </td>
                    <td>
                        <button id="infi34" class="infinistorebtn3">Infinity Point generation (based on fastest infinity) <br>xx</button>
                    </td>
                    <td>
                        <button id="infi44" class="infinistorebtn4" style="font-size: 80%">You start with a galaxy, 4 Dimension Shifts/Boosts, 16 Tickspeed Boosts and 16 Time Dimension Shifts/Boosts. Tickspeed Boosts don't reset anything and is autoed.<br>Cost: 500 IP</button>
                    </td>
                </tr>
                <tr>
                </tr>
            </table>
            <br>
            <div><button id="infiMult" class="infinimultbtn">Multiply infinity points from all sources by 2 <br>currently: <br>Cost: 100 IP</button></div>
            <div><button id="infmultbuyer" class="storebtn" onclick="infMultAutoToggle()" style="display:none; height: 25px; width: 190px; font-size:10px; margin-top: 3px;">Autobuy IP mult ON</button></div>
            <div>
                <table id="footer">
                    <tr>
                        <td>
                            <div style="text-align:center">
                                <a href="howto.html" target="_newtab">How to play  </a> |
                                <a href="about.html" target="_newtab" onclick="giveAchievement('A sound financial decision')">Donate   </a> |
                                <a href="changelog.html" target="_newtab">Changelog   </a> |
                                <a href="https://discord.gg/ST9NaXa" target="_newtab">Discord</a> |
                                <a href="https://www.reddit.com/r/AntimatterDimensions/" target="_newtab">Subreddit</a> |
                                <a href="https://ivark.github.io/savefixer/index.html" target="_newtab">Savefixer</a>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>

        <div id="autobuyers" class="inftab">
            <br>
            <table class="table" style="margin: 0 auto">
                <button class="storebtn" id="toggleautobuyers" style="font-size: 100%; width: 150px; height: 40px; margin: 3px" onclick="toggleAutoBuyers()">Enable/disable autobuyers</button>
                <button class="storebtn" id="togglebulk" style="font-size: 100%; width: 150px; height: 40px;margin: 3px" onclick="toggleBulk()">Disable bulk buy                     </button>
                <button class="storebtn" id="togglecrunchmode" style="font-size: 100%; width: 150px; height: 40px;margin: 3px; display: none" onclick="toggleCrunchMode()">Auto crunch mode: amount</button>
                <tr>
                        <td>
                            <div class="autoBuyerDiv" id="autoBuyerDimBoost" style="font-size: 11px;">
                                <div>Automatic DimBoosts</div>
                                <button class="autobuyerbtn" id="buyerBtnDimBoost">46% smaller interval<br>Cost: 2 points</button>
                                <div style="font-size: 80%"id="intervalDimBoost">Current interval: 30 seconds</div>
                                <span style="font-size: 80%">Max 8ths used on reset:</span>
                                <input type="text" onchange="updatePriorities()" id="priority10"></input>
                                <br>
                                <span style="font-size: 80%">Galaxies required to always Dimboost:</span>
                                <input type="text" onchange="updatePriorities()" id="overGalaxies"></input>
                                <br>
                                <div id="bulkdimboost">
                                    <span style="font-size: 80%" id="bulklabel">Bulk DimBoost amount:</span>
                                    <input type="text" onchange="updatePriorities()" id="bulkDimboost"></input>
                                </div>
                                <br>
                                <span style="font-size: 80%">Is active</span>
                                <input type="checkbox" onchange="updateAutobuyers()"   id="10ison"></input>
                            </div>
                        </td>
                        <td>
                            <div class="autoBuyerDiv" id="autoBuyerGalaxies">
                                <div>Automatic Galaxies</div>
                                <button class="autobuyerbtn" id="buyerBtnGalaxies">46% smaller interval<br>Cost: 2 points</button>
                                <div style="font-size: 80%"id="intervalGalaxies">Current interval: 30 seconds</div>
                                <span>Max Galaxies:</span>
                                <input type="text" onchange="updatePriorities()" id="priority11"></input>
                                <br>
                                <div id="galaxybulk" style="display: none">
                                    <span style="font-size: 80%">Buy max galaxies every X seconds (0 to always buy):</span>
                                    <input type="text" onchange="updatePriorities()" id="bulkgalaxy"></input>
                                </div>
                                <br>
                                <span style="font-size: 80%">Is active</span>
                                <input type="checkbox" onchange="updateAutobuyers()"   id="11ison"></input>
                            </div>
                        </td>
                        <td>
                            <div class="autoBuyerDiv" id="autoBuyerInf">
                                <div>Automatic Big Crunch</div>
                                <button class="autobuyerbtn" id="buyerBtnInf">46% smaller interval<br>Cost: 2 points</button>
                                <div style="font-size: 80%"id="intervalInf">Current interval: 60 seconds</div>
                                <div id="iplimit"><span id="limittext">Amount of IP to wait until reset:</span>
                                <input type="text" onchange="updatePriorities()" id="priority12"></input></div>
                                <br>
                                <span style="font-size: 80%">Is active</span>
                                <input type="checkbox" onchange="updateAutobuyers()"   id="12ison"></input>
                            </div>
                        </td>
                    </tr>
                    <tr>
                      <td>
                        <div class="autoBuyerDiv" id="autoBuyer1">
                            <div>1st Dimension Autobuyer</div>
                            <button class="autobuyerbtn" id="buyerBtn1">46% smaller interval<br>Cost: 2 points</button>
                            <button class="autobuyerbtn" id="toggleBtn1">Buys singles</button>
                            <div style="font-size: 80%"id="interval1">Current interval: 5 seconds<br></div>
                            <span>Priority:</span>
                            <select onchange="updatePriorities()" id="priority1">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                            <option value="6">6</option>
                            <option value="7">7</option>
                            <option value="8">8</option>
                            <option value="9">9</option>
                            </select>
                            <br>
                            <span style="font-size: 80%">Is active</span>
                            <input type="checkbox" onchange="updateAutobuyers()"   id="1ison"></input>
                        </div>
                    </td>
                    <td>
                        <div class="autoBuyerDiv" id="autoBuyer2">
                            <div>2nd Dimension Autobuyer</div>
                            <button class="autobuyerbtn" id="buyerBtn2">46% smaller interval<br>Cost: 2 points</button>
                            <button class="autobuyerbtn" id="toggleBtn2">Buys singles</button>
                            <div style="font-size: 80%"id="interval2">Current interval: 5 seconds<br></div>
                            <span>Priority:</span>
                            <select onchange="updatePriorities()" id="priority2">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                            <option value="6">6</option>
                            <option value="7">7</option>
                            <option value="8">8</option>
                            <option value="9">9</option>
                            </select>
                            <br>
                            <span style="font-size: 80%">Is active</span>
                            <input type="checkbox" onchange="updateAutobuyers()"   id="2ison"></input>
                        </div>
                    </td>
                    <td>
                        <div class="autoBuyerDiv" id="autoBuyer3">
                            <div>3rd Dimension Autobuyer</div>
                            <button class="autobuyerbtn" id="buyerBtn3">46% smaller interval<br>Cost: 2 points</button>
                            <button class="autobuyerbtn" id="toggleBtn3">Buys singles</button>
                            <div style="font-size: 80%"id="interval3">Current interval: 5 seconds<br></div>
                            <span>Priority:</span>
                            <select onchange="updatePriorities()" id="priority3">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                            <option value="6">6</option>
                            <option value="7">7</option>
                            <option value="8">8</option>
                            <option value="9">9</option>
                            </select>
                            <br>
                            <span style="font-size: 80%">Is active</span>
                            <input type="checkbox" onchange="updateAutobuyers()"   id="3ison"></input>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="autoBuyerDiv" id="autoBuyer4">
                            <div>4th Dimension Autobuyer</div>
                            <button class="autobuyerbtn" id="buyerBtn4">46% smaller interval<br>Cost: 2 points</button>
                            <button class="autobuyerbtn" id="toggleBtn4">Buys singles</button>
                            <div style="font-size: 80%"id="interval4">Current interval: 5 seconds<br></div>
                            <span>Priority:</span>
                            <select onchange="updatePriorities()" id="priority4">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                            <option value="6">6</option>
                            <option value="7">7</option>
                            <option value="8">8</option>
                            <option value="9">9</option>
                            </select>
                            <br>
                            <span style="font-size: 80%">Is active</span>
                            <input type="checkbox" onchange="updateAutobuyers()"   id="4ison"></input>
                        </div>
                    </td>
                    <td>
                        <div class="autoBuyerDiv" id="autoBuyer5">
                            <div>5th Dimension Autobuyer</div>
                            <button class="autobuyerbtn" id="buyerBtn5">46% smaller interval<br>Cost: 2 points</button>
                            <button class="autobuyerbtn" id="toggleBtn5">Buys singles</button>
                            <div style="font-size: 80%"id="interval5">Current interval: 5 seconds<br></div>
                            <span>Priority:</span>
                            <select onchange="updatePriorities()" id="priority5">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                            <option value="6">6</option>
                            <option value="7">7</option>
                            <option value="8">8</option>
                            <option value="9">9</option>
                            </select>
                            <br>
                            <span style="font-size: 80%">Is active</span>
                            <input type="checkbox" onchange="updateAutobuyers()"   id="5ison"></input>
                        </div>
                    </td>
                    <td>
                        <div class="autoBuyerDiv" id="autoBuyer6">
                            <div>6th Dimension Autobuyer</div>
                            <button class="autobuyerbtn" id="buyerBtn6">46% smaller interval<br>Cost: 2 points</button>
                            <button class="autobuyerbtn" id="toggleBtn6">Buys singles</button>
                            <div style="font-size: 80%"id="interval6">Current interval: 5 seconds<br></div>
                            <span>Priority:</span>
                            <select onchange="updatePriorities()" id="priority6">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                            <option value="6">6</option>
                            <option value="7">7</option>
                            <option value="8">8</option>
                            <option value="9">9</option>
                            </select>
                            <br>
                            <span style="font-size: 80%">Is active</span>
                            <input type="checkbox" onchange="updateAutobuyers()"   id="6ison"></input>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="autoBuyerDiv" id="autoBuyer7">
                            <div>7th Dimension Autobuyer</div>
                            <button class="autobuyerbtn" id="buyerBtn7">46% smaller interval<br>Cost: 2 points</button>
                            <button class="autobuyerbtn" id="toggleBtn7">Buys singles</button>
                            <div style="font-size: 80%"id="interval7">Current interval: 5 seconds<br></div>
                            <span>Priority:</span>
                            <select onchange="updatePriorities()" id="priority7">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                            <option value="6">6</option>
                            <option value="7">7</option>
                            <option value="8">8</option>
                            <option value="9">9</option>
                            </select>
                            <br>
                            <span style="font-size: 80%">Is active</span>
                            <input type="checkbox" onchange="updateAutobuyers()"   id="7ison"></input>
                        </div>
                    </td>
                    <td>
                        <div class="autoBuyerDiv" id="autoBuyer8">
                            <div>8th Dimension Autobuyer</div>
                            <button class="autobuyerbtn" id="buyerBtn8">46% smaller interval<br>Cost: 2 points</button>
                            <button class="autobuyerbtn" id="toggleBtn8">Buys singles</button>
                            <div style="font-size: 80%"id="interval8">Current interval: 5 seconds<br></div>
                            <span>Priority:</span>
                            <select onchange="updatePriorities()" id="priority8">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                            <option value="6">6</option>
                            <option value="7">7</option>
                            <option value="8">8</option>
                            <option value="9">9</option>
                            </select>
                            <br>
                            <span style="font-size: 80%">Is active</span>
                            <input type="checkbox" onchange="updateAutobuyers()"   id="8ison"></input>
                        </div>
                    </td>
                    <td>
                        <div class="autoBuyerDiv" id="autoBuyerTickSpeed">
                            <div>Tickspeed Autobuyer</div>
                            <button class="autobuyerbtn" id="buyerBtnTickSpeed">46% smaller interval<br>Cost: 2 points</button>
                            <button class="autobuyerbtn" id="toggleBtnTickSpeed">Buys singles</button>
                            <div style="font-size: 80%"id="intervalTickSpeed">Current interval: 5 seconds<br></div>
                            <span>Priority:</span>
                            <select onchange="updatePriorities()" id="priority9">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                            <option value="6">6</option>
                            <option value="7">7</option>
                            <option value="8">8</option>
                            <option value="9">9</option>
                            </select>
                            <br>
                            <span style="font-size: 80%">Is active</span>
                            <input type="checkbox" onchange="updateAutobuyers()"   id="9ison"></input>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="autoBuyerDiv" id="autoBuyerSac">
                            <div>Automatic Sacrifice</div>
                            <button class="autobuyerbtn" id="buyerBtnSac">46% smaller interval<br>Cost: 2 points</button>
                            <div style="font-size: 80%"id="intervalSac">Current interval: 15 seconds</div>
                            <div id="iplimit"><span>Sacrifice when the multiplier is over:</span>
                            <input type="text" onchange="updatePriorities()" id="priority13"></input></div>
                            <br>
                            <span style="font-size: 80%">Is active</span>
                            <input type="checkbox" onchange="updateAutobuyers()" id="13ison"></input>
                        </div>
                    </td>
                    <td>
                        <div class="autoBuyerDiv" id="autoBuyerGalSac">
                            <div>Automatic Galaxy Sacrifice</div>
                            <button class="autobuyerbtn" id="buyerBtnGalSac">46% smaller interval<br>Cost: 2 points</button>
                            <div style="font-size: 80%"id="intervalGalSac">Current interval: 15 seconds</div>
                            <div id="iplimit"><span>Galactic sacrifice when GP gain is over:</span>
                            <input type="text" onchange="updatePriorities()" id="priority14"></input></div>
                            <br>
                            <span style="font-size: 80%">Is active</span>
                            <input type="checkbox" onchange="updateAutobuyers()" id="14ison"></input>
                        </div>
                    </td>
                    <td>
                        <div class="autoBuyerDiv" id="autoBuyerEter">
                            <div>Automatic Eternity</div>
                            <div><span>Amount of EP to wait until reset:</span>
                            <input type="text" onchange="updatePriorities()" id="priority15"></input></div>
                            <br>
                            <span style="font-size: 80%">Is active</span>
                            <input type="checkbox" onchange="updateAutobuyers()"  id="eternityison"></input>
                        </div>
                    </td>
                </tr>
            </table>

            <div>
                <table id="footer">
                    <tr>
                        <td>
                            <div style="text-align:center">
                                <a href="howto.html" target="_newtab">How to play  </a> |
                                <a href="about.html" target="_newtab" onclick="giveAchievement('A sound financial decision')">Donate   </a> |
                                <a href="changelog.html" target="_newtab">Changelog   </a> |
                                <a href="https://discord.gg/ST9NaXa" target="_newtab">Discord</a> |
                                <a href="https://www.reddit.com/r/AntimatterDimensions/" target="_newtab">Subreddit</a>      |    <a href="https://ivark.github.io/savefixer/index.html" target="_newtab">Savefixer</a>

                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="postinf" class="inftab" align="center">
            <br>
            <div id="abletobreak">You need to get Automated Big Crunch interval to 0.1 to be able to break infinity</div>
                <br>
                <table id="breaktable" class="table" style="margin: 0 auto">
                  <tr>
                    <td>
                        <button id="break" class="infinistorebtn2" onclick="breakInfinity()" ach-tooltip="Cost multipliers post-infinity will begin increasing faster, but so will the Infinity Point gain">BREAK INFINITY</button>
                    </td>
                  </tr>
                </table>
                <br>
                <table id="postinftable" class="table" style="margin: 0 auto">
                    <tr>
                        <td>
                            <button id="postinfi01" class="infinistorebtn1">Multiplier to galaxy points based on infinities <br>Currently:<br>Cost: 1 K IP</button>
                        </td>
                        <td>
                            <button id="postinfi11" class="infinistorebtn1">Production based on total antimatter produced <br>Currently:<br>Cost: 10 K IP</button>
                        </td>
                        <td>
                            <button id="postinfi21" class="infinistorebtn1">Production based on current antimatter<br>Currently: <br>Cost: 50 K IP</button>
                        </td>
                        <td>
                            <button id="postinfi41" class="infinistorebtn1">Galaxies are 70% more effective<br>Currently: <br>Cost: 500 K IP</button>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <button id="postinfi02" class="infinistorebtn1">Decrease dimboost cost increase by 1 <br>Currently:<br>Cost: 20 K IP</button>
                        </td>
                        <td>
                            <button id="postinfi12" class="infinistorebtn1">Increase the production of all dimensions by amount infinitied <br>Currently:<br>Cost: 100 K IP</button>
                        </td>
                        <td>
                            <button id="postinfi22" class="infinistorebtn1">achievemult</button>
                        </td>
                        <td>
                            <button id="postinfi32" class="infinistorebtn1">Increase the production of all dimensions based on slowest challenge run<br>Cost: 3 M IP</button>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <button id="postinfi03" class="infinistorebtn1">Decrease galaxy cost increase by 5<br>Currently:<br>Cost: 500 K IP</button>
                        </td>
                        <td>
                            <button id="postinfi13" class="infinistorebtn1">You passively generate Infinitied stat based on your fastest infinity.<br>1 every <br>Cost: 20 M IP</button>
                        </td>
                        <td>
                            <button id="postinfi23" class="infinistorebtn1">Option to bulk buy Dimension Boosts <br>Cost: </button>
                        </td>
                        <td>
                            <button id="postinfi33" class="infinistorebtn1">Autobuyers work twice as fast <br>Cost: 1 Qa IP</button>
                        </td>

                    </tr>
                    <tr>
                        <td>
                            <button id="postinfi04" class="infinistorebtn1">Dimension multipliers are further increased by g31 <br>x^1.1 -> x^1.12<br>Cost: 1 K IP</button>
                        </td>
                        <td>
                            <button id="postinfi31" class="infinistorebtn1">Tickspeed cost multiplier increase <br>10x -> 9x<br>Cost: 300 K IP</button>
                        </td>
                        <td>
                            <button id="postinfi42" class="infinistorebtn1">Dimension cost multiplier increase <br>10x -> 9x<br>Cost: 10 M IP</button>
                        </td>
                        <td>
                            <button id="offlineProd" class="infinistorebtn1">Dimension cost multiplier increase <br>10x -> 9x<br>Cost: 10 M IP</button>
                        </td>
                    </tr>
		    <tr id="postinfir5">
                        <td>
                            <button id="postinfi50" class="infinistorebtn1">Decrease dimboost cost increase by 0.5 <br>4 -> 3.5<br>Cost: 1e25 IP</button>
			</td>
			<td>
                            <button id="postinfi51" class="infinistorebtn1">Galaxies are 20% more effective <br>Cost: 1e29 IP</button>
			</td>
			<td>
                            <button id="postinfi52" class="infinistorebtn1">Decrease galaxy cost increase by 3 <br>25 -> 22<br>Cost: 1e33 IP</button>
			</td>
			<td>
                            <button id="postinfi53" class="infinistorebtn1">Divide ID cost increases by 50 <br>Cost: 1e37 IP</button>
			</td>
                    </tr>
                  <tr id="postinfir6">
                    <td>
                      <button id="postinfi60" class="infinistorebtn1">You gain more IP based on galaxies<br>(5^(galaxies-95))<br>Currently: 1x<br>Cost: 1e50 IP</button>
                    </td>
	            <td>
		      <button id="postinfi61" class="infinistorebtn1"> Make g11 better <br> Cost: 1e450 IP </button>
		    </td>
		    <td>
		      <button id="postinfi62" class="infinistorebtn1"> Make g13 better based on dimboosts <br> Cost: 1e700 IP </button>
		    </td>
		    <td>
		      <button id="postinfi63" class="infinistorebtn1"> Unlock two new rows of galaxy upgrades <br> Cost: 1e2000 IP </button>
		    </td>
                  </tr>
                  <tr id="postinfir7">
                    <td>
                      <button id="postinfi70" class="infinistorebtn1"></button>
                    </td>
	            <td>
		      <button id="postinfi71" class="infinistorebtn1"></button>
		    </td>
		    <td>
		      <button id="postinfi72" class="infinistorebtn1"></button>
		    </td>
		    <td>
		      <button id="postinfi73" class="infinistorebtn1"></button>
		    </td>
                  </tr>
                </table>
                <div>
                    <table id="footer">
                        <tr>
                            <td>
                                <div style="text-align:center">
                                    <a href="howto.html" target="_newtab">How to play  </a> |
                                    <a href="about.html" target="_newtab" onclick="giveAchievement('A sound financial decision')">Donate   </a> |
                                    <a href="changelog.html" target="_newtab">Changelog   </a> |
                                    <a href="https://discord.gg/ST9NaXa" target="_newtab">Discord</a> |
                                    <a href="https://www.reddit.com/r/AntimatterDimensions/" target="_newtab">Subreddit</a>      |    <a href="https://ivark.github.io/savefixer/index.html" target="_newtab">Savefixer</a>

                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
        </div>
        <div id="replicantis" class="inftab">
            <br>
            <button class="storebtn" id="replicantiunlock" onclick="unlockReplicantis()" style="width:200px; height: 80px">Unlock Replicantis<br>Cost: 1e140 IP</button>
            <div id="replicantidiv" style="display: none; width: 1000px">
                <div id="eterc8repl" style="display: none;"></div>
                <p style="font-size: 15px">You have <span id="replicantiamount" style="font-size:23px; color: black">0</span> replicanti. Translated to <span id="replicantimult" style="font-size:23px; color: black">0</span>x post-dilation multiplier on all infinity dimensions and GP gain</p><br>
				<span id="scREP">Replicanti affects dilation effect at a slightly reduced rate.</span>
                <br>
                <button class="storebtn" id="replicantichance" onclick="upgradeReplicantiChance()" style="width:180px; height: 50px; font-size: 10px">Replicate chance: 1%<br>+1% Costs: 1e6969 IP</button>
                <button class="storebtn" id="replicantiinterval" onclick="upgradeReplicantiInterval()" style="width:180px; height: 50px; font-size: 10px">Interval: 1000ms<br>-> 900 Costs: 1e6969 IP</button>
                <button class="storebtn" id="replicantimax" onclick="upgradeReplicantiGalaxy()" style="width:180px; height: 50px; font-size: 10px">Max Replicanti galaxies: 0<br>+1 Costs: 1e6969 IP</button>
                <br>
                <button class="storebtn" id="replauto1" onclick="toggleReplAuto('chance')" style="width:180px; font-size: 10px; visibility: hidden">Auto: ON</button>
                <button class="storebtn" id="replauto2" onclick="toggleReplAuto('interval')" style="width:180px; font-size: 10px; visibility: hidden">Auto: ON</button>
                <button class="storebtn" id="replauto3" onclick="toggleReplAuto('galaxy')" style="width:180px; font-size: 10px; visibility: hidden">Auto: ON</button>
                <br><br><br>
                <p id="replicantiapprox"></p>
                <br>
                <button class="storebtn" id="replicantireset" onclick="replicantiGalaxy()" style="width: 200px; height: 70px; font-size: 12px">Reset replicanti amount, but get a free galaxy</button>
                <br>
                <button class="storebtn" id="replicantiresettoggle" onclick="replicantiGalaxyAutoToggle()" style="width: 200px; height: 25px; font-size: 12px; display: none">Auto galaxy OFF</button>
            </div>
            <div id="footercontainer">
                <table id="footer">
                    <tr>
                        <td>
                            <div style="text-align:center">
                                <a href="howto.html" target="_newtab">How to play  </a> |
                                <a href="about.html" target="_newtab" onclick="giveAchievement('A sound financial decision')">Donate   </a> |
                                <a href="changelog.html" target="_newtab">Changelog   </a> |
                                <a href="https://discord.gg/ST9NaXa" target="_newtab">Discord</a> |
                                <a href="https://www.reddit.com/r/AntimatterDimensions/" target="_newtab">Subreddit</a>      |    <a href="https://ivark.github.io/savefixer/index.html" target="_newtab">Savefixer</a>

                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>

        </div>
    </div>
    <div class="popup" id="update">
        <div id="updatePopup">The last test.</div>
        <button class="storebtn" style="font-size: 15px" onclick="closeToolTip()" style="display: inline">Okay</button>
    </div>
    <div class="popup" id="challfail">
        <div id="failPopup">You failed the challenge, you will now exit it.</div>
        <button class="storebtn" style="font-size: 15px" onclick="closeToolTip()" style="display: inline">Okay</button>
    </div>
    <div class="popup" id="offlineprogress" style="width: 450px; height: 200px;">
        <div id="offlinePopup" style="height: 150px">You made X antimatter and stuff</div>
        <button class="storebtn" style="font-size: 15px" onclick="closeToolTip()" style="display: inline">Okay</button>
	</div>
	<div class="popup savemenu" id="loadmenu">
		<button class="closebtn storebtn" onclick="closeToolTip()">&times;</button>
		<div id="save1">
			<strong>Save #1: <span class="save_selected">(selected)</span></strong>
			<span class="save_antimatter"></span>
			<button class="storebtn" style="font-size: 15px" onclick="change_save(0)" style="display: inline">Load</button>
		</div>
		<div id="save2">
			<strong>Save #2: <span class="save_selected">(selected)</span></strong>
			<span class="save_antimatter"></span>
			<button class="storebtn" style="font-size: 15px" onclick="change_save(1)" style="display: inline">Load</button>
		</div>
		<div id="save3">
			<strong>Save #3: <span class="save_selected">(selected)</span></strong>
			<span class="save_antimatter"></span>
			<button class="storebtn" style="font-size: 15px" onclick="change_save(2)" style="display: inline">Load</button>
		</div>
	</div>
	<div class="popup savemenu" id="cloudloadconflict">
		<strong>Your cloud save appears to be older than your local save. Please select which one you would like to keep.</strong>
		<div id="local">
			<strong>Save #<span class="save_id"></span> (local):</strong>
			<span>Infinities: <span class="save_infinities"></span></span>
			<span>Eternities: <span class="save_eternities"></span></span>
			<button class="storebtn" style="font-size: 15px" style="display: inline">Load local</button>
		</div>
		<div id="cloud">
			<strong>Save #<span class="save_id"></span> (cloud):</strong>
			<span>Infinities: <span class="save_infinities"></span></span>
			<span>Eternities: <span class="save_eternities"></span></span>
			<button class="storebtn" style="font-size: 15px" style="display: inline">Load cloud</button>
		</div>
	</div>
	<div class="popup savemenu" id="cloudsaveconflict">
		<strong>Your local save appears to be older than your cloud save. Would you like to overwrite the cloud save?</strong>
		<div id="local">
			<strong>Save #<span class="save_id"></span> (local):</strong>
			<span>Infinities: <span class="save_infinities"></span></span>
			<span>Eternities: <span class="save_eternities"></span></span>
		</div>
		<div id="cloud">
			<strong>Save #<span class="save_id"></span> (cloud):</strong>
			<span>Infinities: <span class="save_infinities"></span></span>
			<span>Eternities: <span class="save_eternities"></span></span>
		</div>

		<button class="storebtn yes" style="font-size: 15px" style="display: inline">Yes</button>
		<button class="storebtn no" style="font-size: 15px" style="display: inline">No</button>
    </div>
    <div class="popup savemenu" id="animationoptions">
        <button class="closebtn storebtn" onclick="closeToolTip()">&times;</button>
		<button id="floatingTextAnimBtn" class="storebtn" onclick="animationOnOff('floatingText')" style="width: 200px; height: 55px; font-size: 15px" style="display: inline">ON</button>
        <button id="bigCrunchAnimBtn" class="storebtn" onclick="animationOnOff('bigCrunch')" style="width: 200px; height: 55px; font-size: 15px" style="display: inline">ON</button>
        <button id="tachyonParticleAnimBtn" class="storebtn" onclick="animationOnOff('tachyonParticles')" style="width: 200px; height: 55px; font-size: 15px" style="display: inline">ON</button>
	</div>
    <div id="TTbuttons" style="display:none;">
        <button class="timetheorembtn" onclick="maxTheorems()" style="margin-left:-276px; width:130px; height: 30px; font-size: 0.75rem; bottom: 77px;">Buy max Theorems</button>
        <button class="timetheorembtn" onclick="studyTreeSaveButton(1)" style="margin-left:176px; width:30px; height: 30px; font-size: 0.75rem; bottom: 77px;">1</button>
        <button class="timetheorembtn" onclick="studyTreeSaveButton(2)" style="margin-left:211px; width:30px; height: 30px; font-size: 0.75rem; bottom: 77px;">2</button>
        <button class="timetheorembtn" onclick="studyTreeSaveButton(3)" style="margin-left:246px; width:30px; height: 30px; font-size: 0.75rem; bottom: 77px;">3</button>
        <button class="timetheorembtn" onclick="buyWithAntimatter()" id="theoremam" style="margin-left: -276px">Buy Time Theorems <br>Cost: 1e20000 antimatter</button>
        <button class="timetheorembtn" onclick="buyWithIP()" id="theoremip" style="margin-left: -86px">Buy Time Theorems <br>Cost: 1 IP</button>
        <button class="timetheorembtnlocked" onclick="buyWithEP()" id="theoremep" style="margin-left: 106px">Buy Time Theorems <br>Cost: 1 EP</button>
        <div id="theorembuybackground"></div>
        <p id="timetheorems" style="position: fixed;">You have 0 Time Theorems.</p>
        <p id="studytreeloadsavetext" style="position: fixed;">load:</p>
    </div>
    <div id="progress" style="display:none">
        <div id="progressbar"><span id="progresspercent" ach-tooltip="Percentage until Infinity">0%</span></div>
    </div>
</body>



<script type="text/javascript"src="PlayFab/PlayFabClientApi.js"></script>
<script type="text/javascript" src="javascripts/autobuyer.js"></script>
<!-- script type="text/javascript" src="javascripts/decimal.js"></script> -->
<script type="text/javascript" src="javascripts/breakinfinity.js"></script>
<script type="text/javascript" src="javascripts/chart.js"></script>
<script type="text/javascript" src="javascripts/lz-string.js"></script>


<script type="text/javascript" src="javascripts/core/polyfill.js"></script>
<script type="text/javascript" src="javascripts/core/format.js"></script>
<script type="text/javascript" src="javascripts/core/achievements.js"></script>
<script type="text/javascript" src="javascripts/core/chart.js"></script>
<script type="text/javascript" src="javascripts/core/tickspeed.js"></script>
<script type="text/javascript" src="javascripts/core/normal_dimension.js"></script>
<script type="text/javascript" src="javascripts/core/infinity_dimension.js"></script>
<script type="text/javascript" src="javascripts/core/time_dimension.js"></script>
<script type="text/javascript" src="javascripts/core/dimboost.js"></script>
<script type="text/javascript" src="javascripts/core/timestudies.js"></script>
<script type="text/javascript" src="javascripts/core/canvases.js"></script>
<script type="text/javascript" src="javascripts/core/devtools.js"></script>
<script type="text/javascript" src="javascripts/core/load_functions.js"></script>
<script type="text/javascript" src="javascripts/core/newsticker.js"></script>
<script type="text/javascript" src="javascripts/core/kong.js"></script>
<script type="text/javascript" src="javascripts/core/playfab.js"></script>
<script type="text/javascript" src="javascripts/core/galactic_sacrifice.js"></script>



<script type="text/javascript" src="javascripts/core/sc.js"></script>
<script type="text/javascript" src="javascripts/core/replicanti.js"></script>

<script type="text/javascript" src="javascripts/game.js?85"></script>


<script type="text/javascript" src="javascripts/sha512.js"></script>



</html>
